mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04: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 );
|
CURL_CA_CERT_ERRORMSG2 );
|
||||||
}
|
}
|
||||||
else
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user