def _check_error_log(stage): """Check whether any error log occur during stage.""" error_count = console.error_count() if error_count > 0: console.error('There are %s errors in the %s stage' % (error_count, stage)) return 1 return 0
def _check_error_log(stage): error_count = console.error_count() if error_count > 0: console.error('There are %s errors in the %s stage' % (error_count, stage)) return 1 return 0