aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMathieu Rochette <mathieu@evangeneer.net>2009-05-28 23:46:19 +0200
committerMax Kellermann <max@duempel.org>2009-05-28 23:46:19 +0200
commit0dedfe7ddc77a789df9a2e465009dfbf2d5ef100 (patch)
treeb681bd3cc07d1848b92ace96089d4d25ace53efe /src
parent535da8b7977d26f24633ddd42acbb05ad3cc8512 (diff)
downloadmpd-0dedfe7ddc77a789df9a2e465009dfbf2d5ef100.tar.gz
mpd-0dedfe7ddc77a789df9a2e465009dfbf2d5ef100.tar.xz
mpd-0dedfe7ddc77a789df9a2e465009dfbf2d5ef100.zip
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)]
Diffstat (limited to 'src')
-rw-r--r--src/input/file_input_plugin.c2
1 files changed, 2 insertions, 0 deletions
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;
}