]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: describe error when could not open config or keyfile
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 10 Sep 2014 09:30:44 +0000 (11:30 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 10 Sep 2014 09:34:48 +0000 (11:34 +0200)
client.c

index 303fe4a5745f9b03c34c7cda223d7e7480357147..ca55b78f2f8ac2080d54d5cd4da45da39b369da1 100644 (file)
--- a/client.c
+++ b/client.c
@@ -2616,7 +2616,7 @@ authenticate_from_config(const char *filename)
 
   in = fopen(filename, "r");
   if (!in) {
-    fprintf(stderr, "Could not open file %s\n", filename);
+    fprintf(stderr, "Could not open file %s : %s\n", filename, strerror(errno));
     return 0;
   }
 
@@ -2641,7 +2641,7 @@ authenticate_from_config(const char *filename)
 
   in = fopen(keyfile, "r");
   if (!in) {
-    fprintf(stderr, "Could not open keyfile %s\n", keyfile);
+    fprintf(stderr, "Could not open keyfile %s : %s\n", keyfile, strerror(errno));
     return 0;
   }