statustime: Print error message on exception.
This commit is contained in:
parent
13591f3217
commit
194212dbaa
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue