client: describe error when could not open config or keyfile

This commit is contained in:
Miroslav Lichvar 2014-09-10 11:30:44 +02:00
parent 0e786f5907
commit ad58384760

View file

@ -2616,7 +2616,7 @@ authenticate_from_config(const char *filename)
in = fopen(filename, "r"); in = fopen(filename, "r");
if (!in) { 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; return 0;
} }
@ -2641,7 +2641,7 @@ authenticate_from_config(const char *filename)
in = fopen(keyfile, "r"); in = fopen(keyfile, "r");
if (!in) { 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; return 0;
} }