Fixed #2054 (Missing newline in 'invalid parameter' error message)

This commit is contained in:
Daniel Marjamäki 2010-09-18 16:11:46 +02:00
parent de3c761790
commit c1bf388b15
1 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
const std::string errmsg = _settings->addEnabled("style"); const std::string errmsg = _settings->addEnabled("style");
if (!errmsg.empty()) if (!errmsg.empty())
{ {
std::cout << errmsg; PrintMessage(errmsg);
return false; return false;
} }
} }
@ -121,7 +121,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
const std::string errmsg(_settings->nomsg.parseFile(f)); const std::string errmsg(_settings->nomsg.parseFile(f));
if (!errmsg.empty()) if (!errmsg.empty())
{ {
std::cout << errmsg; PrintMessage(errmsg);
return false; return false;
} }
} }
@ -152,7 +152,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
const std::string errmsg = _settings->addEnabled("unusedFunctions"); const std::string errmsg = _settings->addEnabled("unusedFunctions");
if (!errmsg.empty()) if (!errmsg.empty())
{ {
std::cout << errmsg; PrintMessage(errmsg);
return false; return false;
} }
} }
@ -166,7 +166,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
const std::string errmsg = _settings->addEnabled(argv[i] + 9); const std::string errmsg = _settings->addEnabled(argv[i] + 9);
if (!errmsg.empty()) if (!errmsg.empty())
{ {
std::cout << errmsg; PrintMessage(errmsg);
return false; return false;
} }
} }