Merge pull request #2640 from blyxxyz/do-not-discard-error

Preserve error message for "other" I/O errors
This commit is contained in:
Sylvestre Ledru
2021-09-07 08:00:23 +02:00
committed by GitHub
-1
View File
@@ -399,7 +399,6 @@ impl Display for UIoError {
TimedOut => "Timed out",
WriteZero => "Write zero",
Interrupted => "Interrupted",
Other => "Other",
UnexpectedEof => "Unexpected end of file",
_ => {
// TODO: using `strip_errno()` causes the error message