diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-18 15:34:52 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-18 15:34:52 -0400 |
commit | 4e95da4dbb105042bbaf41b7384c73506c86a61e (patch) | |
tree | d356dd2d88799c8646f58d3f2da33fd647740bb9 /src | |
parent | 71124d81e8a254360c12d3c9a2a687c77b864132 (diff) | |
download | lingo-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.cpp | 10 |
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 | ||
34 | wxIMPLEMENT_APP(TrackerApp); | 44 | wxIMPLEMENT_APP(TrackerApp); |