Commit 2a859f87 authored by Max Kellermann's avatar Max Kellermann

log: print detailed errno message on open() failure

parent b680753d
...@@ -140,8 +140,8 @@ log_init_file(const char *path, unsigned line, GError **error_r) ...@@ -140,8 +140,8 @@ log_init_file(const char *path, unsigned line, GError **error_r)
out_fd = open_log_file(); out_fd = open_log_file();
if (out_fd < 0) { if (out_fd < 0) {
g_set_error(error_r, log_quark(), errno, g_set_error(error_r, log_quark(), errno,
"problem opening log file \"%s\" (config line %u) " "failed to open log file \"%s\" (config line %u): %s",
"for writing", path, line); path, line, g_strerror(errno));
return false; 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