From d6529d8c6005e42c69a9402b31ddcd9f4be4cfa6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 17 Jul 2018 21:56:43 +0200 Subject: test/*: catch and print all exceptions --- test/run_convert.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/run_convert.cxx') diff --git a/test/run_convert.cxx b/test/run_convert.cxx index 64ca98bcc..920672001 100644 --- a/test/run_convert.cxx +++ b/test/run_convert.cxx @@ -29,7 +29,7 @@ #include "pcm/PcmConvert.hxx" #include "util/ConstBuffer.hxx" #include "util/StaticFifoBuffer.hxx" -#include "Log.hxx" +#include "util/PrintException.hxx" #include #include @@ -98,7 +98,7 @@ try { state.Close(); return EXIT_SUCCESS; -} catch (const std::exception &e) { - LogError(e); +} catch (...) { + PrintException(std::current_exception()); return EXIT_FAILURE; } -- cgit v1.2.3