| 546 | } |
| 547 | |
| 548 | void ResultsView::handleCriticalError(const ErrorItem &item) |
| 549 | { |
| 550 | if (ErrorLogger::isCriticalErrorId(item.errorId.toStdString())) { |
| 551 | if (!mCriticalErrors.contains(item.errorId)) { |
| 552 | if (!mCriticalErrors.isEmpty()) |
| 553 | mCriticalErrors += ","; |
| 554 | mCriticalErrors += item.errorId; |
| 555 | if (item.severity == Severity::internal) |
| 556 | mCriticalErrors += " (suppressed)"; |
| 557 | } |
| 558 | QString msg = tr("There was a critical error with id '%1'").arg(item.errorId); |
| 559 | if (!item.file0.isEmpty()) |
| 560 | msg += ", " + tr("when checking %1").arg(item.file0); |
| 561 | else |
| 562 | msg += ", " + tr("when checking a file"); |
| 563 | msg += ". " + tr("Analysis was aborted."); |
| 564 | mUI->mLabelCriticalErrors->setText(msg); |
| 565 | mUI->mLabelCriticalErrors->setVisible(true); |
| 566 | } |
| 567 | } |
nothing calls this directly
no test coverage detected