summaryrefslogtreecommitdiff
path: root/test/run_decoder.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-17 21:56:43 +0200
committerMax Kellermann <max@musicpd.org>2018-07-17 21:58:39 +0200
commitd6529d8c6005e42c69a9402b31ddcd9f4be4cfa6 (patch)
treeb98690cc13e49bff6a58b0e5a754e17ac056e9b8 /test/run_decoder.cxx
parentedb44a536a726e6889f02ee26fb393432152ae7b (diff)
test/*: catch and print all exceptions
Diffstat (limited to 'test/run_decoder.cxx')
-rw-r--r--test/run_decoder.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx
index d4e3aef44..aa1a809c9 100644
--- a/test/run_decoder.cxx
+++ b/test/run_decoder.cxx
@@ -29,6 +29,7 @@
#include "AudioFormat.hxx"
#include "util/OptionDef.hxx"
#include "util/OptionParser.hxx"
+#include "util/PrintException.hxx"
#include "Log.hxx"
#include "LogBackend.hxx"
@@ -136,7 +137,7 @@ try {
}
return EXIT_SUCCESS;
-} catch (const std::exception &e) {
- LogError(e);
+} catch (...) {
+ PrintException(std::current_exception());
return EXIT_FAILURE;
}