about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-18 15:34:52 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-18 15:34:52 -0400
commit4e95da4dbb105042bbaf41b7384c73506c86a61e (patch)
treed356dd2d88799c8646f58d3f2da33fd647740bb9 /src
parent71124d81e8a254360c12d3c9a2a687c77b864132 (diff)
downloadlingo-ap-tracker-4e95da4dbb105042bbaf41b7384c73506c86a61e.tar.gz
lingo-ap-tracker-4e95da4dbb105042bbaf41b7384c73506c86a61e.tar.bz2
lingo-ap-tracker-4e95da4dbb105042bbaf41b7384c73506c86a61e.zip
Log fatal exceptions
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp10
1 files changed, 10 insertions, 0 deletions
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 {
29 frame->Show(true); 29 frame->Show(true);
30 return true; 30 return true;
31 } 31 }
32
33 bool OnExceptionInMainLoop() override {
34 try {
35 throw;
36 } catch (const std::exception& ex) {
37 wxLogError(ex.what());
38 }
39
40 return false;
41 }
32}; 42};
33 43
34wxIMPLEMENT_APP(TrackerApp); 44wxIMPLEMENT_APP(TrackerApp);