Skip to content

Commit

Permalink
match ws on fatal()
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteven4 committed Nov 2, 2024
1 parent 030c9c6 commit cb91706
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fatal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ fatal(const char* fmt, ...)
va_start(ap, fmt);
QString msg = QString::vasprintf(fmt, ap);
va_end(ap);
if (msg.endsWith('\n')) {
msg.chop(1);
}
qCritical().noquote() << msg;
exit(1);
}
Expand Down

0 comments on commit cb91706

Please sign in to comment.