| 399 | } |
| 400 | |
| 401 | bool ErrorContainer::printMessage(Error& error, bool muteStdout) { |
| 402 | if (error.m_reported) return false; |
| 403 | std::pair<std::string, bool> report = createReport_(error); |
| 404 | |
| 405 | if (!muteStdout) { |
| 406 | std::cout << report.first << std::flush; |
| 407 | } |
| 408 | bool successLogFile = printToLogFile(report.first); |
| 409 | if (successLogFile) error.m_reported = true; |
| 410 | return (successLogFile && (!report.second)); |
| 411 | } |
| 412 | |
| 413 | bool ErrorContainer::printMessages(bool muteStdout) { |
| 414 | std::pair<std::string, bool> report = createReport_(); |