1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 17:18:48 -05:00

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
This commit is contained in:
Daniel Stenberg 2020-06-24 00:22:00 +02:00
parent 7fb33ee871
commit 550bcdd442
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -593,7 +593,7 @@ static CURLcode chop_write(struct connectdata *conn,
return pausewrite(data, type, ptr, len); return pausewrite(data, type, ptr, len);
} }
if(wrote != chunklen) { if(wrote != chunklen) {
failf(data, "Failed writing body (%zu != %zu)", wrote, chunklen); failf(data, "Failure writing output to destination");
return CURLE_WRITE_ERROR; return CURLE_WRITE_ERROR;
} }
} }