From a727d0bb0b2b3757a32c27caa1b794fe0b3ddf6b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 28 Nov 2011 09:31:43 +0100 Subject: log: print reason for failure --- src/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/log.c b/src/log.c index 556c8b04f..99a9a8f6d 100644 --- a/src/log.c +++ b/src/log.c @@ -139,8 +139,8 @@ log_init_file(const char *path, unsigned line) out_filename = path; out_fd = open_log_file(); if (out_fd < 0) - MPD_ERROR("problem opening log file \"%s\" (config line %u) " - "for writing\n", path, line); + MPD_ERROR("failed to open log file \"%s\" (config line %u): %s", + path, line, g_strerror(errno)); g_log_set_default_handler(file_log_func, NULL); } -- cgit v1.2.3