ExprEngine: Fail to execute contract => write error message
This commit is contained in:
parent
cdc530a25f
commit
e30eabc896
|
@ -1318,11 +1318,11 @@ static void checkContract(Data &data, const Token *tok, const Function *function
|
||||||
const std::string functionExpects = contractIt->second;
|
const std::string functionExpects = contractIt->second;
|
||||||
ErrorLogger::ErrorMessage errmsg(callstack,
|
ErrorLogger::ErrorMessage errmsg(callstack,
|
||||||
&data.tokenizer->list,
|
&data.tokenizer->list,
|
||||||
Severity::SeverityType::information,
|
Severity::SeverityType::error,
|
||||||
id,
|
id,
|
||||||
"ExprEngine failed to execute contract for function '" + function->name() + "'.",
|
"Function '" + function->name() + "' is called, can not determine that its contract is always met.",
|
||||||
CWE(0),
|
CWE(0),
|
||||||
false);
|
true);
|
||||||
data.errorLogger->reportErr(errmsg);
|
data.errorLogger->reportErr(errmsg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue