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:
parent
7fb33ee871
commit
550bcdd442
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user