Skip to content

Commit 129ff53

Browse files
committed
dont abort on top level exceptions at least
1 parent 881e708 commit 129ff53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/noggit/application.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ namespace
332332
}
333333

334334
int main(int argc, char *argv[])
335+
try
335336
{
336337
noggit::RegisterErrorHandlers();
337338
std::set_terminate (noggit_terminate_handler);
@@ -344,3 +345,8 @@ int main(int argc, char *argv[])
344345

345346
return qapp.exec();
346347
}
348+
catch (...)
349+
{
350+
noggit_terminate_handler();
351+
return 1;
352+
}

0 commit comments

Comments
 (0)