diff --git a/src/error.rs b/src/error.rs index 55105ad..5269d91 100644 --- a/src/error.rs +++ b/src/error.rs @@ -132,7 +132,7 @@ impl fmt::Display for CmdError { } } #[cfg(not(unix))] - None => write!(f, "command was terminated by a signal `{cmd}`{nl}"), + None => write!(f, "command was terminated by a signal `{cmd}`{nl}")?, }, CmdErrorKind::Utf8(err) => { write!(f, "command produced invalid utf-8 `{cmd}`: {err}")?;