From 0dedfe7ddc77a789df9a2e465009dfbf2d5ef100 Mon Sep 17 00:00:00 2001 From: Mathieu Rochette Date: Thu, 28 May 2009 23:46:19 +0200 Subject: input/file: log message on error If a file is removed the library, next time mpd will try to play it it will result in an error 'ERROR: problems decoding some/file.ogg'. Nothing is written in log files (verbose mode or not) [mk: append strerror(errno)] --- src/input/file_input_plugin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input/file_input_plugin.c b/src/input/file_input_plugin.c index de0f26753..64a4030ab 100644 --- a/src/input/file_input_plugin.c +++ b/src/input/file_input_plugin.c @@ -52,6 +52,8 @@ input_file_open(struct input_stream *is, const char *filename) fd = open(pathname, O_RDONLY); if (fd < 0) { is->error = errno; + g_debug("Failed to open \"%s\": %s", + pathname, g_strerror(errno)); g_free(pathname); return false; } -- cgit v1.2.3