aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-09 21:52:20 +0200
committerMax Kellermann <max@duempel.org>2011-09-09 21:53:42 +0200
commit2a859f870a11aca2f888890c7b59ab767be7ecbd (patch)
tree105ef106a8308cda589fa962e68334052f2b981f
parentb680753db88ea75cab6776aaf99c1635c9e48f68 (diff)
downloadmpd-2a859f870a11aca2f888890c7b59ab767be7ecbd.tar.gz
mpd-2a859f870a11aca2f888890c7b59ab767be7ecbd.tar.xz
mpd-2a859f870a11aca2f888890c7b59ab767be7ecbd.zip
log: print detailed errno message on open() failure
Diffstat (limited to '')
-rw-r--r--src/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index b6c79e985..140b50a2e 100644
--- a/src/log.c
+++ b/src/log.c
@@ -140,8 +140,8 @@ log_init_file(const char *path, unsigned line, GError **error_r)
out_fd = open_log_file();
if (out_fd < 0) {
g_set_error(error_r, log_quark(), errno,
- "problem opening log file \"%s\" (config line %u) "
- "for writing", path, line);
+ "failed to open log file \"%s\" (config line %u): %s",
+ path, line, g_strerror(errno));
return false;
}