aboutsummaryrefslogtreecommitdiff
path: root/c/err.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/err.cpp')
-rw-r--r--c/err.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/c/err.cpp b/c/err.cpp
index fd35ddd..77bf394 100644
--- a/c/err.cpp
+++ b/c/err.cpp
@@ -77,11 +77,14 @@ std::wstring What(std::exception_ptr ex)
std::rethrow_exception(ex);
} catch (const Err& e) {
return e.what;
- } catch (const WideException& e) {
- return e.What();
} catch (const std::exception& e) {
return WideFromNarrow(e.what());
} catch (...) {
return L"Unknown exception";
}
}
+
+void OnTerminate()
+{
+ EBMessageBox(What(), L"Fatal Error", MB_ICONERROR);
+}