From: Daniel Stenberg Date: Tue, 23 Jun 2020 22:22:00 +0000 (+0200) Subject: sendf: improve the message on client write errors X-Git-Tag: curl-7_71_1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=550bcdd442dcd6d32e9ef018dbcb72b06365a03c;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/sendf.c b/lib/sendf.c index 147ecbfa53..6943fa84e0 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; } }