Skip to content

Commit

Permalink
Add a test of exception handling on startup since I've had problems w…
Browse files Browse the repository at this point in the history
…ith it being broken
  • Loading branch information
slipher authored and slipher committed Sep 23, 2018
1 parent 95bbc43 commit a9c0e47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.cpp
Expand Up @@ -60,6 +60,12 @@ int main(int argc, char *argv[])

qDebug() << "Git version:" << GIT_VERSION;
LogSettings();
try {
qDebug() << "Testing exception handling...";
throw 1;
} catch(int) {
qDebug() << "Exception handling works";
}

app.setWindowIcon(QIcon(":resources/updater.png"));
int fontId = QFontDatabase::addApplicationFont(":resources/Roboto-Regular.ttf");
Expand Down

0 comments on commit a9c0e47

Please sign in to comment.