catch all exceptions and show them as unexpected errors

master
Andrzej Rybczak 12 years ago
parent 4ac46f8c9d
commit 5d6d390f77
  1. 4
      src/ncmpcpp.cpp

@ -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();

Loading…
Cancel
Save