]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/application.cpp
Remove the custom demangle function and use GCC's abi::__cxa_demangle instead
[libs/core.git] / source / core / application.cpp
index 47c176bd8a882a6869df467e7330f2274bfcc5e4..a49802350f2f7d655125d8ab0480d9e41370c72a 100644 (file)
@@ -6,6 +6,7 @@ Distributed under the LGPL
 */
 #include <signal.h>
 #include <iostream>
+#include "../debug/demangle.h"
 #include "../time/units.h"
 #include "../time/utils.h"
 #include "application.h"
@@ -57,10 +58,10 @@ int Application::run(int argc, char **argv)
        catch(const exception &e)
        {
                cerr<<"An uncaught exception occurred.\n";
-               cerr<<"  type:   "<<typeid(e).name()<<'\n';
+               cerr<<"  type:   "<<Debug::demangle(typeid(e).name())<<'\n';
                cerr<<"  what(): "<<e.what()<<'\n';
                delete app_;
-               throw;
+               return 124;
        }
 }