diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,6 +1,13 @@ #include "MainLoop.h" int main() { - MainLoop main_loop; - return main_loop.run(); + + try { + MainLoop main_loop; + return main_loop.run(); + } catch (const std::exception& ex) { + std::cerr << "Error: " << ex.what() << std::endl; + } + + return 1; } |