capture.cpp: added check_max_errors()
capture.cpp: added check_max_errors()

to centralize checking for the maximum number of consecutive errors
thomasjacquin/allsky,thomasjacquin/allsky,thomasjacquin/allsky