summaryrefslogtreecommitdiff
path: root/test/dump_playlist.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-09-09 15:37:06 +0200
committerMax Kellermann <max@musicpd.org>2016-09-09 18:15:01 +0200
commitfc7d3f64c007672e4c01172ccb1c46d083a8abd5 (patch)
tree3c72f16ee6cc919a17558678a1e270568182b8af /test/dump_playlist.cxx
parent63ab7767a37a99b5651f32e067aeb5fcbb7bd033 (diff)
input/Plugin: migrate open() from class Error to C++ exceptions
Diffstat (limited to 'test/dump_playlist.cxx')
-rw-r--r--test/dump_playlist.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx
index 1bb03b598..8f3be7f7a 100644
--- a/test/dump_playlist.cxx
+++ b/test/dump_playlist.cxx
@@ -31,7 +31,6 @@
#include "fs/Path.hxx"
#include "fs/io/BufferedOutputStream.hxx"
#include "fs/io/StdioOutputStream.hxx"
-#include "util/Error.hxx"
#include "thread/Cond.hxx"
#include "Log.hxx"
@@ -63,7 +62,6 @@ try {
config_global_init();
- Error error;
ReadConfigFile(config_path);
const ScopeIOThread io_thread;
@@ -82,15 +80,7 @@ try {
if (playlist == NULL) {
/* open the stream and wait until it becomes ready */
- is = InputStream::OpenReady(uri, mutex, cond, error);
- if (!is) {
- if (error.IsDefined())
- LogError(error);
- else
- fprintf(stderr,
- "InputStream::Open() failed\n");
- return 2;
- }
+ is = InputStream::OpenReady(uri, mutex, cond);
/* open the playlist */