mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
if no errorbuffer string was provided when a return code was returned, use
the curl_easy_strerror() function to provide one
This commit is contained in:
parent
9fb4e019fa
commit
6faa83bc6a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user