Skip to content

Commit a71a647

Browse files
committed
Fix syntax error
1 parent e1d3e6f commit a71a647

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/cppcheck.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,8 +1434,8 @@ void CppCheck::executeAddonsWholeProgram(const std::map<std::string, std::size_t
14341434

14351435
try {
14361436
executeAddons(ctuInfoFiles);
1437-
catch (const InternalError& e) {
1438-
internalError("", "Internal error during whole program analysis: " + std::string(e.what()));
1437+
} catch (const InternalError& e) {
1438+
internalError("", "Internal error during whole program analysis: " + e.errorMessage);
14391439
mExitCode = 1;
14401440
}
14411441

0 commit comments

Comments
 (0)