From: Daniel Stenberg Date: Tue, 12 Oct 2004 07:24:19 +0000 (+0000) Subject: add proper error message when send() fails X-Git-Tag: curl-7_12_2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=557b6cfd3f866adb9040a0efa5466ea11e45587a;p=thirdparty%2Fcurl.git add proper error message when send() fails --- diff --git a/lib/sendf.c b/lib/sendf.c index 7d0f71de17..43163e61fd 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -308,6 +308,9 @@ CURLcode Curl_write(struct connectdata *conn, ) /* this is just a case of EWOULDBLOCK */ bytes_written=0; + else + failf(conn->data, "Send failure: %s", + Curl_strerror(conn, err)); } #ifdef USE_SSLEAY }