diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-10-12 07:24:19 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-12 07:24:19 +0000 |
commit | 557b6cfd3f866adb9040a0efa5466ea11e45587a (patch) | |
tree | 03a4113c8ace59e612eca36c0d5bfbdd69e9f889 | |
parent | 84bf03b365b3dd1059efe267d70599af95821339 (diff) |
add proper error message when send() fails
-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 7d0f71de1..43163e61f 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 } |