From bb4ef68639a0a9bae88c96d9b40207f8cdbbe1ee Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 4 May 2021 14:31:48 +0100 Subject: [PATCH] ExitStatusError: Be more verbose in Display impl Co-authored-by: Jane Lusby --- library/std/src/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) } }