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

This commit is contained in:
Arthur Moore 2015-01-12 02:32:12 -05:00
parent 125b26a484
commit 89e6cee8f5
1 changed files with 10 additions and 0 deletions

View File

@ -74,6 +74,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;
};