Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
olabetskyi committed Feb 2, 2024
1 parent d222bcc commit 4202066
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cppcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ unsigned int CppCheck::check(const std::string &path)
if (!Path::isFile(path)) {
std::string fixedpath = Path::simplifyPath(path);
fixedpath = Path::toNativeSeparators(fixedpath);
std::string errorMsg(std::string("File ") + fixedpath + ' ' + std::string("does not exists. Skipping..."));
const std::string errorMsg("File " + fixedpath + " does not exists. Skipping file.");
fileNotFoundError(Path::simplifyPath(path), errorMsg);
return 0;
}
Expand All @@ -568,7 +568,7 @@ unsigned int CppCheck::check(const FileSettings &fs)
if (!Path::isFile(fs.filename)) {
std::string fixedpath = Path::simplifyPath(fs.filename);
fixedpath = Path::toNativeSeparators(fixedpath);
std::string errorMsg(std::string("File ") + fixedpath + ' ' + std::string("does not exists. Skipping..."));
const std::string errorMsg("File " + fixedpath + " does not exists. Skipping file.");
fileNotFoundError(fs.filename, errorMsg);
return 0;
}
Expand Down Expand Up @@ -1063,7 +1063,7 @@ static ErrorMessage makeError(const std::string &filename, const std::string &ms
// TODO: replace with ErrorMessage::fromInternalError()
void CppCheck::internalError(const std::string &filename, const std::string &msg)
{
mErrorLogger.reportErr(makeError(filename, msg, "internalError"));
mErrorLogger.reportErr(makeError(filename, "Bailing out from analysis:" + msg, "internalError"));
}

void CppCheck::fileNotFoundError(const std::string &filename, const std::string &msg)
Expand Down

0 comments on commit 4202066

Please sign in to comment.