From: <ibr...@us...> - 2013-09-11 13:01:36
|
Revision: 4825 http://sourceforge.net/p/tora/code/4825 Author: ibre5041 Date: 2013-09-11 13:01:32 +0000 (Wed, 11 Sep 2013) Log Message: ----------- more verbose crashes Modified Paths: -------------- trunk/tora/src/core/main.cpp Modified: trunk/tora/src/core/main.cpp =================================================================== --- trunk/tora/src/core/main.cpp 2013-09-10 19:20:11 UTC (rev 4824) +++ trunk/tora/src/core/main.cpp 2013-09-11 13:01:32 UTC (rev 4825) @@ -309,12 +309,20 @@ str, qApp->translate("main", "Exit")); } + catch (std::exception const& exc) + { + fprintf(stderr, "Unhandled exception: %s\n\n%s\n", typeid(exc).name(), exc.what()); + TOMessageBox::critical(NULL, + qApp->translate("main", "Unhandled exception: %1").arg(typeid(exc).name()), + exc.what(), + qApp->translate("main", "Exit")); + } catch (...) { fprintf(stderr, "Unhandled exception"); TOMessageBox::critical(NULL, qApp->translate("main", "Unhandled exception"), - "unknown", + "Unknown exception class type", qApp->translate("main", "Exit")); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |