diff --git a/library/std/src/process.rs b/library/std/src/process.rs index e9d80713400..9252aba903f 100644 --- a/library/std/src/process.rs +++ b/library/std/src/process.rs @@ -1607,7 +1607,7 @@ fn into(self) -> ExitStatus { #[unstable(feature = "exit_status_error", issue = "84908")] impl fmt::Display for ExitStatusError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - self.into_status().fmt(f) + write!(f, "process exited unsuccessfully: {}", self.into_status()) } }