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

src/main/main.cpp

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