Skip to content

Commit

Permalink
Limit parser error message line length to < 80
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Jun 21, 2021
1 parent 92b52c1 commit 291e264
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/cmdlineargs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ bool CmdlineArgs::parse(int& argc, char** argv) {

if (parser.isSet(logLevel)) {
if (!parseLogLevel(parser.value(logLevel), &m_logLevel)) {
fputs("\nlogLevel argument wasn't 'trace', 'debug', 'info', 'warning', or 'critical'! Mixxx will only output\n\
warnings and errors to the console unless this is set properly.\n",
fputs("\nlog-level wasn't 'trace', 'debug', 'info', 'warning', or 'critical'!\n"
"Mixxx will only print warnings and errors to the console.\n",
stdout);
}
} else {
Expand All @@ -250,8 +250,8 @@ warnings and errors to the console unless this is set properly.\n",

if (parser.isSet(logFlushLevel)) {
if (!parseLogLevel(parser.value(logFlushLevel), &m_logFlushLevel)) {
fputs("\nlog-flush-level argument wasn't 'trace', 'debug', 'info', 'warning', or 'critical'! Mixxx will only output\n\
warnings and errors to the console unless this is set properly.\n",
fputs("\nlog-flush-level wasn't 'trace', 'debug', 'info', 'warning', or 'critical'!\n"
"Mixxx will only flush output after a critical message.\n",
stdout);
}
}
Expand Down

0 comments on commit 291e264

Please sign in to comment.