Catch std::exceptions thrown during startup

This commit is contained in:
Thomas Goyne 2014-06-06 08:09:28 -07:00
parent 62d64e0949
commit 392c9ea35a

View file

@ -333,6 +333,10 @@ bool AegisubApp::OnInit() {
wxMessageBox(to_wx(e.GetMessage()), "Fatal error while initializing"); wxMessageBox(to_wx(e.GetMessage()), "Fatal error while initializing");
return false; return false;
} }
catch (std::exception const& e) {
wxMessageBox(to_wx(e.what()), "Fatal error while initializing");
return false;
}
#ifndef _DEBUG #ifndef _DEBUG
catch (...) { catch (...) {
wxMessageBox("Unhandled exception","Fatal error while initializing"); wxMessageBox("Unhandled exception","Fatal error while initializing");