common: Don't add quotes to exit exceptions
authorShane Synan <digitalcircuit36939@gmail.com>
Sun, 27 Jan 2019 07:46:10 +0000 (02:46 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 13 Feb 2019 19:40:32 +0000 (20:40 +0100)
When logging exit exceptions, wrap the QString in qPrintable(),
removing the extra quotes added by the debug logger.

src/common/main.cpp

index 7e235d0..0ee13ec 100644 (file)
@@ -254,7 +254,7 @@ int main(int argc, char **argv)
     }
     catch (ExitException e) {
         if (!e.errorString.isEmpty()) {
-            qCritical() << e.errorString;
+            qCritical() << qPrintable(e.errorString);
         }
         return e.exitCode;
     }