Preserve error message for "other" I/O errors

These errors still have a unique message even if the ErrorKind enum
doesn't classify them.
This commit is contained in:
Jan Verbeek 2021-09-06 23:24:31 +02:00
parent a0be9811c6
commit 7791207870

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