diff options
author | Max Kellermann <max@musicpd.org> | 2018-07-17 21:56:43 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-07-17 21:58:39 +0200 |
commit | d6529d8c6005e42c69a9402b31ddcd9f4be4cfa6 (patch) | |
tree | b98690cc13e49bff6a58b0e5a754e17ac056e9b8 /test/visit_archive.cxx | |
parent | edb44a536a726e6889f02ee26fb393432152ae7b (diff) |
test/*: catch and print all exceptions
Diffstat (limited to 'test/visit_archive.cxx')
-rw-r--r-- | test/visit_archive.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/visit_archive.cxx b/test/visit_archive.cxx index c8a87e27a..d6bf43ff5 100644 --- a/test/visit_archive.cxx +++ b/test/visit_archive.cxx @@ -27,7 +27,7 @@ #include "archive/ArchiveFile.hxx" #include "archive/ArchiveVisitor.hxx" #include "fs/Path.hxx" -#include "Log.hxx" +#include "util/PrintException.hxx" #include <stdexcept> @@ -95,7 +95,7 @@ try { file->Visit(visitor); return result; -} catch (const std::exception &e) { - LogError(e); +} catch (...) { + PrintException(std::current_exception()); return EXIT_FAILURE; } |