aboutsummaryrefslogtreecommitdiffstats
path: root/cli_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli_output.c')
-rw-r--r--cli_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli_output.c b/cli_output.c
index 54b09a67..476b2bf0 100644
--- a/cli_output.c
+++ b/cli_output.c
@@ -50,7 +50,7 @@ int open_logfile(const char * const filename)
return 1;
}
if ((logfile = fopen(filename, "w")) == NULL) {
- perror(filename);
+ msg_gerr("Error: opening log file \"%s\" failed: %s\n", filename, strerror(errno));
return 1;
}
return 0;