Unify custom exceptions

This commit is contained in:
Vladimir Golovnev (Glassez) 2021-05-05 16:41:30 +03:00
parent 89cedd411e
commit 9565b695ef
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
13 changed files with 43 additions and 57 deletions

View file

@ -638,7 +638,7 @@ int Application::exec(const QStringList &params)
catch (const RuntimeError &err)
{
#ifdef DISABLE_GUI
fprintf(stderr, "%s", err.what());
fprintf(stderr, "%s", qPrintable(err.message()));
#else
QMessageBox msgBox;
msgBox.setIcon(QMessageBox::Critical);