catch all exceptions at lower level

This commit is contained in:
Andrzej Rybczak
2014-08-31 19:28:27 +02:00
parent 3e713d06f6
commit 4cf170d44b

View File

@@ -254,10 +254,6 @@ 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();
@@ -270,6 +266,10 @@ int main(int argc, char **argv)
{
Status::handleServerError(e);
}
catch (std::exception &e)
{
Statusbar::printf("Unexpected error: %1%", e.what());
}
}
return 0;
}