diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-10-08 16:10:37 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-10-08 16:10:37 +0000 |
commit | 91b84b89e4d057d7c1a022dc1b6ce44e3738dcf0 (patch) | |
tree | 256578c7937e5cdb109013dd385928247b6b9c88 | |
parent | 017ec204a96f7c40dcb5ed5eabb1594820c251b9 (diff) |
failf() now sends the text to the debug function callback
-rw-r--r-- | lib/sendf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index ecc14f1a9..c4addb527 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -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); } |