From 4e95da4dbb105042bbaf41b7384c73506c86a61e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 18 May 2024 15:34:52 -0400 Subject: Log fatal exceptions --- src/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 5b036ea..abe6626 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,6 +29,16 @@ class TrackerApp : public wxApp { frame->Show(true); return true; } + + bool OnExceptionInMainLoop() override { + try { + throw; + } catch (const std::exception& ex) { + wxLogError(ex.what()); + } + + return false; + } }; wxIMPLEMENT_APP(TrackerApp); -- cgit 1.4.1