From 779120787042a916b2b5419e72ab37cd60089c26 Mon Sep 17 00:00:00 2001 From: Jan Verbeek Date: Mon, 6 Sep 2021 23:24:31 +0200 Subject: [PATCH] Preserve error message for "other" I/O errors These errors still have a unique message even if the ErrorKind enum doesn't classify them. --- src/uucore/src/lib/mods/error.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/uucore/src/lib/mods/error.rs b/src/uucore/src/lib/mods/error.rs index 9a697d822..04019e234 100644 --- a/src/uucore/src/lib/mods/error.rs +++ b/src/uucore/src/lib/mods/error.rs @@ -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