Skip to content

Commit

Permalink
Executor: pass through internal errors in hasToLog()
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jan 11, 2025
1 parent b901fbe commit 74c3a27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ Executor::Executor(const std::list<FileWithDetails> &files, const std::list<File
// TODO: this logic is duplicated in CppCheck::reportErr()
bool Executor::hasToLog(const ErrorMessage &msg)
{
if (msg.severity == Severity::internal)
return true;

if (!mSettings.library.reportErrors(msg.file0))
return false;

Expand Down

0 comments on commit 74c3a27

Please sign in to comment.