Exit 1 when errors are found
Skip printing 'Error report' header and footer when there are no errors