X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fapplication.cpp;h=0ef3443e8eac4fab7173b15df42c9cd1360b4e88;hp=0e93a9c653064ec4aeccbd39d358a80e74fb7be9;hb=015d9ccbae576049e392b4dbc3017e00d8df3c49;hpb=521cf1db00f8ce2d9f9494dca503d6c17d89ac2f diff --git a/source/core/application.cpp b/source/core/application.cpp index 0e93a9c..0ef3443 100644 --- a/source/core/application.cpp +++ b/source/core/application.cpp @@ -48,9 +48,20 @@ int Application::run(int argc, char **argv) return 1; } - int result=app_->main(); - delete app_; - return result; + try + { + int result=app_->main(); + delete app_; + return result; + } + catch(const exception &e) + { + cerr<<"An uncaught exception occurred.\n"; + cerr<<" type: "<