mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Catch std::exceptions thrown during startup
This commit is contained in:
parent
62d64e0949
commit
392c9ea35a
@ -333,6 +333,10 @@ bool AegisubApp::OnInit() {
|
||||
wxMessageBox(to_wx(e.GetMessage()), "Fatal error while initializing");
|
||||
return false;
|
||||
}
|
||||
catch (std::exception const& e) {
|
||||
wxMessageBox(to_wx(e.what()), "Fatal error while initializing");
|
||||
return false;
|
||||
}
|
||||
#ifndef _DEBUG
|
||||
catch (...) {
|
||||
wxMessageBox("Unhandled exception","Fatal error while initializing");
|
||||
|
Loading…
x
Reference in New Issue
Block a user