From 550bcdd442dcd6d32e9ef018dbcb72b06365a03c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 24 Jun 2020 00:22:00 +0200 Subject: [PATCH] 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 --- lib/sendf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }