catch all exceptions and show them as unexpected errors

This commit is contained in:
Andrzej Rybczak
2014-08-31 08:46:57 +02:00
parent 4ac46f8c9d
commit 5d6d390f77

View File

@@ -239,6 +239,10 @@ int main(int argc, char **argv)
{
Statusbar::printf("Error: %1%", e.errorMessage());
}
catch (std::exception &e)
{
Statusbar::printf("Unexpected error: %1%", e.what());
}
if (myScreen == myPlaylist)
myPlaylist->EnableHighlighting();