Skip to content

Commit

Permalink
Cleanup|Client: Cleaned up error message if app init fails
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 5, 2016
1 parent eb029a9 commit 8508c45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doomsday/apps/client/src/main_client.cpp
Expand Up @@ -48,6 +48,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QTranslator>
#include <de/EscapeParser>

/**
* Application entry point.
Expand Down Expand Up @@ -77,8 +78,10 @@ int main(int argc, char** argv)
}
catch(de::Error const &er)
{
qWarning() << "App init failed:\n" << er.asText();
QMessageBox::critical(0, DOOMSDAY_NICENAME, "App init failed:\n" + er.asText());
de::EscapeParser msg;
msg.parse(er.asText());
qWarning() << "App init failed:\n" << msg.plainText();
QMessageBox::critical(0, DOOMSDAY_NICENAME, "App init failed:\n" + msg.plainText());
return -1;
}
}
Expand Down

0 comments on commit 8508c45

Please sign in to comment.