diff --git a/cli/src/error.rs b/cli/src/error.rs index e84e84fe..a595ad01 100644 --- a/cli/src/error.rs +++ b/cli/src/error.rs @@ -106,11 +106,10 @@ impl From for Error { impl From for Error { fn from(error: io::Error) -> Self { - match error { - x if x.kind() == ErrorKind::BrokenPipe => return Error::new_ignored(), - _ => (), + match error.kind() { + ErrorKind::BrokenPipe => Error::new_ignored(), + _ => Error::new(error.to_string()), } - Error::new(error.to_string()) } }