mirror of https://github.com/odrling/Aegisub
Catch wxStrings in OnInit as there's still a few things that throw them
This commit is contained in:
parent
8f765f3955
commit
3e5ba4fd98
|
@ -269,6 +269,10 @@ bool AegisubApp::OnInit() {
|
||||||
wxMessageBox(err,"Fatal error while initializing");
|
wxMessageBox(err,"Fatal error while initializing");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
catch (wxString const& err) {
|
||||||
|
wxMessageBox(err, "Fatal error while initializing");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
catch (agi::Exception const& e) {
|
catch (agi::Exception const& e) {
|
||||||
wxMessageBox(to_wx(e.GetMessage()),"Fatal error while initializing");
|
wxMessageBox(to_wx(e.GetMessage()),"Fatal error while initializing");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue