summaryrefslogtreecommitdiff
path: root/test/read_mixer.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/read_mixer.cxx
parentedb44a536a726e6889f02ee26fb393432152ae7b (diff)
test/*: catch and print all exceptions
Diffstat (limited to 'test/read_mixer.cxx')
-rw-r--r--test/read_mixer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/read_mixer.cxx b/test/read_mixer.cxx
index a0d7487b2..8b609e6fb 100644
--- a/test/read_mixer.cxx
+++ b/test/read_mixer.cxx
@@ -26,7 +26,7 @@
#include "Main.hxx"
#include "event/Loop.hxx"
#include "config/Block.hxx"
-#include "Log.hxx"
+#include "util/PrintException.hxx"
#include <assert.h>
#include <string.h>
@@ -76,7 +76,7 @@ try {
printf("%d\n", volume);
return 0;
-} catch (const std::exception &e) {
- LogError(e);
+} catch (...) {
+ PrintException(std::current_exception());
return EXIT_FAILURE;
}