Make --debug-fp work with new exception also.

This commit is contained in:
Reijo Tomperi 2011-11-21 00:04:09 +02:00
parent 91e89380c2
commit 7d7d68b192
1 changed files with 5 additions and 1 deletions

View File

@ -115,7 +115,11 @@ bool CppCheck::findError(std::string code, const char FileName[])
// is still there.
code = previousCode.substr(found+9);
_errorList.clear();
checkFile(code, FileName);
try {
checkFile(code, FileName);
} catch (ErrorLogger::ErrorMessage &err) {
reportErr(err);
}
}
if (_errorList.empty()) {