From 194212dbaa2cd922de4716ea8c62c327392b38ae Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 6 Aug 2021 12:42:32 +0200 Subject: [PATCH] statustime: Print error message on exception. --- statustime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/statustime.cpp b/statustime.cpp index c835318..d62fd8b 100755 --- a/statustime.cpp +++ b/statustime.cpp @@ -30,9 +30,10 @@ int main() std::this_thread::sleep_for(1s); } } - catch (const std::exception &) + catch (const std::exception &e) { cout << "\nError: Time script crashed.\n"; + std::cerr << e.what() << '\n'; return 33; } }