diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 9c915203c..63461122c 100644 --- a/src/main.c +++ b/src/main.c @@ -3461,7 +3461,8 @@ operate(struct Configurable *config, int argc, char *argv[]) CURL_CA_CERT_ERRORMSG2 ); } else - fprintf(config->errors, "curl: (%d) %s\n", res, errorbuffer); + fprintf(config->errors, "curl: (%d) %s\n", res, + errorbuffer[0]? errorbuffer: curl_easy_strerror(res)); } #endif |