diff --git a/src/result.rs b/src/result.rs index 550f2bdae..744681fe6 100644 --- a/src/result.rs +++ b/src/result.rs @@ -50,7 +50,7 @@ impl ZipError { impl Display for ZipError { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { match self { - Self::Io(_) => f.write_str("i/o error"), + Self::Io(e) => write!(f, "i/o error: {e}"), Self::InvalidArchive(e) => write!(f, "invalid Zip archive: {e}"), Self::UnsupportedArchive(e) => write!(f, "unsupported Zip archive: {e}"), Self::FileNotFound => f.write_str("specified file not found in archive"),