client: describe error when could not open config or keyfile
This commit is contained in:
parent
0e786f5907
commit
ad58384760
1 changed files with 2 additions and 2 deletions
4
client.c
4
client.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue