From 6a5676b11717e0aee26b9a4ad747ed0316f0c737 Mon Sep 17 00:00:00 2001 From: shg8 Date: Tue, 20 Feb 2024 19:22:26 -0600 Subject: [PATCH] Print exceptions in stdout --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 7a927ff..d02609c 100644 --- a/main.cpp +++ b/main.cpp @@ -74,8 +74,8 @@ int main(int argc, char** argv) { renderer.run(); #ifndef DEBUG } catch (const std::exception& e) { - std::cerr << e.what() << std::endl; - return 1; + std::cout << e.what() << std::endl; + return 0; } #endif return 0;