summaryrefslogtreecommitdiff
path: root/src/input/Init.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-19 10:56:23 +0100
committerMax Kellermann <max@musicpd.org>2017-12-19 10:56:23 +0100
commit914df18bf93369d279fff85f87c4ac8524f32540 (patch)
treeb73edeeb37923be1c124e608423ad3b5da068958 /src/input/Init.cxx
parenta539094c06114a6be862e219bfc03d6a3513d80b (diff)
Main, ...: catch any exception, not just std::runtime_error
Diffstat (limited to 'src/input/Init.cxx')
-rw-r--r--src/input/Init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/Init.cxx b/src/input/Init.cxx
index 7272339d0..6a40f5491 100644
--- a/src/input/Init.cxx
+++ b/src/input/Init.cxx
@@ -62,7 +62,7 @@ input_stream_global_init(EventLoop &event_loop)
"Input plugin '%s' is unavailable",
plugin->name);
continue;
- } catch (const std::runtime_error &e) {
+ } catch (...) {
std::throw_with_nested(FormatRuntimeError("Failed to initialize input plugin '%s'",
plugin->name));
}