]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sendf: improve the message on client write errors
authorDaniel Stenberg <daniel@haxx.se>
Tue, 23 Jun 2020 22:22:00 +0000 (00:22 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 24 Jun 2020 14:03:40 +0000 (16:03 +0200)
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

index 147ecbfa53e10f0ad80d4416d966759db4e22bf9..6943fa84e006283c30e2fbc18eecf272bacee13d 100644 (file)
@@ -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;
       }
     }