Commit 91b84b89 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

failf() now sends the text to the debug function callback

parent 017ec204
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
}