Catch wxStrings in OnInit as there's still a few things that throw them

This commit is contained in:
Thomas Goyne 2012-12-31 07:49:57 -08:00
parent 8f765f3955
commit 3e5ba4fd98
1 changed files with 4 additions and 0 deletions

View File

@ -269,6 +269,10 @@ bool AegisubApp::OnInit() {
wxMessageBox(err,"Fatal error while initializing");
return false;
}
catch (wxString const& err) {
wxMessageBox(err, "Fatal error while initializing");
return false;
}
catch (agi::Exception const& e) {
wxMessageBox(to_wx(e.GetMessage()),"Fatal error while initializing");
return false;