summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ncmpcpp.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp
index 7faf3488..4b4edf3f 100644
--- a/src/ncmpcpp.cpp
+++ b/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();