summaryrefslogtreecommitdiff
path: root/test/DumpDatabase.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-10-29 10:21:57 +0200
committerMax Kellermann <max@musicpd.org>2016-10-29 10:42:56 +0200
commitfac8edd47aa8f86688e8b7d7d0c6945509954d28 (patch)
treeff10541b17fac1275efd5ec822b24a270d84df48 /test/DumpDatabase.cxx
parent9a9da7b0773b5c4863919b84b2269cfeb605ebaa (diff)
db/Interface: migrate visitor methods from class Error to C++ exceptions
Diffstat (limited to 'test/DumpDatabase.cxx')
-rw-r--r--test/DumpDatabase.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx
index 4324b2088..e6a5030dd 100644
--- a/test/DumpDatabase.cxx
+++ b/test/DumpDatabase.cxx
@@ -33,7 +33,6 @@
#include "fs/Path.hxx"
#include "event/Loop.hxx"
#include "Log.hxx"
-#include "util/Error.hxx"
#include "util/ScopeExit.hxx"
#include <stdexcept>
@@ -108,7 +107,6 @@ try {
config_global_init();
AtScopeExit() { config_global_finish(); };
- Error error;
ReadConfigFile(config_path);
TagLoadConfig();
@@ -133,11 +131,7 @@ try {
const DatabaseSelection selection("", true);
- if (!db->Visit(selection, DumpDirectory, DumpSong, DumpPlaylist,
- error)) {
- cerr << error.GetMessage() << endl;
- return EXIT_FAILURE;
- }
+ db->Visit(selection, DumpDirectory, DumpSong, DumpPlaylist);
return EXIT_SUCCESS;
} catch (const std::exception &e) {