module SimpleCov

def process_results_and_report_error

def process_results_and_report_error
  exit_status = process_result(result)
  # Force exit with stored status (see github issue #5)
  if exit_status.positive?
    warn("SimpleCov failed with exit #{exit_status} due to a coverage related error") if print_error_status
    Kernel.exit exit_status
  end
end