Skip to content

Commit c6c0424

Browse files
committed
show import project error message in gui
1 parent 4fa77c3 commit c6c0424

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gui/mainwindow.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,6 +1990,12 @@ void MainWindow::analyzeProject(const ProjectFile *projectFile, const QStringLis
19901990
break;
19911991
}
19921992

1993+
if (!p.errors.empty())
1994+
errorMessage += ": \n";
1995+
1996+
for (const auto &error : p.errors)
1997+
errorMessage += "\n - " + tr(error.c_str());
1998+
19931999
if (!errorMessage.isEmpty()) {
19942000
QMessageBox msg(QMessageBox::Critical,
19952001
tr("Cppcheck"),

0 commit comments

Comments
 (0)