diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-06-24 00:22:00 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-24 16:03:40 +0200 |
commit | 550bcdd442dcd6d32e9ef018dbcb72b06365a03c (patch) | |
tree | 6b312d588deb949509d438827190cee245b32030 | |
parent | 7fb33ee871a04d2e4f6ffedba0808635efb1ef53 (diff) | |
download | curl-550bcdd442dcd6d32e9ef018dbcb72b06365a03c.tar.gz |
sendf: improve the message on client write errors
Replace "Failed writing body (X != Y)" with
"Failure writing output to destination". Possibly slightly less cryptic.
Reported-by: coinhubs on github
Fixes #5594
Closes #5596
-rw-r--r-- | lib/sendf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index 147ecbfa5..6943fa84e 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -593,7 +593,7 @@ static CURLcode chop_write(struct connectdata *conn, return pausewrite(data, type, ptr, len); } if(wrote != chunklen) { - failf(data, "Failed writing body (%zu != %zu)", wrote, chunklen); + failf(data, "Failure writing output to destination"); return CURLE_WRITE_ERROR; } } |