statustime: Print error message on exception.

This commit is contained in:
tastytea 2021-08-06 12:42:32 +02:00
parent 13591f3217
commit 194212dbaa
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 1 deletions

View File

@ -30,9 +30,10 @@ int main()
std::this_thread::sleep_for(1s);
}
}
catch (const std::exception &)
catch (const std::exception &e)
{
cout << "\n<span color='red'>Error: Time script crashed.</span>\n";
std::cerr << e.what() << '\n';
return 33;
}
}