mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
failf() now sends the text to the debug function callback
This commit is contained in:
parent
017ec204a9
commit
91b84b89e4
@ -153,6 +153,9 @@ void Curl_failf(struct SessionHandle *data, const char *fmt, ...)
|
||||
if(data->set.errorbuffer && !data->state.errorbuf) {
|
||||
vsnprintf(data->set.errorbuffer, CURL_ERROR_SIZE, fmt, ap);
|
||||
data->state.errorbuf = TRUE; /* wrote error string */
|
||||
|
||||
Curl_debug(data, CURLINFO_TEXT, data->set.errorbuffer,
|
||||
strlen(data->set.errorbuffer));
|
||||
}
|
||||
va_end(ap);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user