Commit 0dedfe7d authored by Mathieu Rochette's avatar Mathieu Rochette Committed by Max Kellermann

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)]
parent 535da8b7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment