Verification; Clarify error message

This commit is contained in:
Daniel Marjamäki 2020-01-01 08:36:40 +01:00
parent 443e8cfbcf
commit 28c37bb63f
1 changed files with 1 additions and 1 deletions

View File

@ -1848,7 +1848,7 @@ void ExprEngine::runChecks(ErrorLogger *errorLogger, const Tokenizer *tokenizer,
dataBase->addError(tok->linenr());
std::list<const Token*> callstack{tok};
ErrorLogger::ErrorMessage errmsg(callstack, &tokenizer->list, Severity::SeverityType::error, "verificationUninit", "Cannot determine that data is initialized", CWE(908), false);
ErrorLogger::ErrorMessage errmsg(callstack, &tokenizer->list, Severity::SeverityType::error, "verificationUninit", "Cannot determine that '" + tok->expressionString() + "' is initialized", CWE(908), false);
errorLogger->reportErr(errmsg);
};
#endif