message: Fixing previous PR, errors should only get marked as reported when actually printed
diff: @@ -388,20 +388,19 @@ bool ErrorContainer::printMessage(Error& error, bool muteStdout) {
  if (!muteStdout) {
  std::cout << report.first << std::flush;
  + error.m_reported = true;
  }
  bool successLogFile = printToLogFile(report.first);
  - error.m_reported = true;
  return (successLogFile && (!report.second));
  }
  bool ErrorContainer::printMessages(bool muteStdout) {
  std::pair<std::string, bool> report = createReport_();
  + if (!muteStdout) {
  + std::cout << report.first << std::flush;
  for (auto& err : m_errors) {
  err.m_reported = true;
  }
  -
  - if (!muteStdout) {
  - std::cout << report.first << std::flush;
  }
  bool successLogFile = printToLogFile(report.first);
  return (successLogFile && (!report.second));
  