From: Miroslav Lichvar Date: Wed, 10 Sep 2014 09:30:44 +0000 (+0200) Subject: client: describe error when could not open config or keyfile X-Git-Tag: 1.31~5 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ad583847609e64500f1dde84ab7379ce80cfa955;p=thirdparty%2Fchrony.git client: describe error when could not open config or keyfile --- diff --git a/client.c b/client.c index 303fe4a5..ca55b78f 100644 --- 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; }