From ad583847609e64500f1dde84ab7379ce80cfa955 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 10 Sep 2014 11:30:44 +0200 Subject: [PATCH] client: describe error when could not open config or keyfile --- client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index 303fe4a..ca55b78 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; }