1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48: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:
Daniel Stenberg 2004-05-24 13:27:48 +00:00
parent 9fb4e019fa
commit 6faa83bc6a

View File

@ -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