diff options
| author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-05-04 14:31:48 +0100 |
|---|---|---|
| committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-05-12 11:12:19 +0100 |
| commit | bb4ef68639a0a9bae88c96d9b40207f8cdbbe1ee (patch) | |
| tree | 6c150ede00fe3ffb9865532b07b9306a35d19376 | |
| parent | 8832b0a81cd24aa66111a60453375f7833303987 (diff) | |
| download | rust-bb4ef68639a0a9bae88c96d9b40207f8cdbbe1ee.tar.gz rust-bb4ef68639a0a9bae88c96d9b40207f8cdbbe1ee.zip | |
ExitStatusError: Be more verbose in Display impl
Co-authored-by: Jane Lusby <jlusby@yaah.dev>
| -rw-r--r-- | library/std/src/process.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ impl Into<ExitStatus> for ExitStatusError { #[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()) } } |
