From 392c9ea35a781c27452080460c2641a2a02e30bf Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 6 Jun 2014 08:09:28 -0700 Subject: [PATCH] Catch std::exceptions thrown during startup --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index de7112113..54364bee6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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");