Try to be more informative than the default wx exception handler before terminating

This commit is contained in:
wowzaman12 2015-03-28 13:56:33 +00:00
parent b07e5c63bf
commit ad13e1fb45
1 changed files with 10 additions and 0 deletions

View File

@ -73,6 +73,16 @@ public:
wxString log;
// there's no way to retrieve "current" locale, so this is public
wxLocale locale;
//Handle most exceptions
virtual bool OnExceptionInMainLoop()
{
try {throw;}
catch(const std::exception& e){
std::cerr << "AN ERROR HAS OCCURRED: " << e.what() << std::endl;
return false;
}
}
private:
wxPathList config_path;
};