summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-06-24 00:22:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-06-24 16:03:40 +0200
commit550bcdd442dcd6d32e9ef018dbcb72b06365a03c (patch)
tree6b312d588deb949509d438827190cee245b32030
parent7fb33ee871a04d2e4f6ffedba0808635efb1ef53 (diff)
downloadcurl-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.c2
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;
}
}