Skip to content

Commit bb4ef68

Browse files
ijacksonyaahc
andcommitted
ExitStatusError: Be more verbose in Display impl
Co-authored-by: Jane Lusby <[email protected]>
1 parent 8832b0a commit bb4ef68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@ impl Into<ExitStatus> for ExitStatusError {
16071607
#[unstable(feature = "exit_status_error", issue = "84908")]
16081608
impl fmt::Display for ExitStatusError {
16091609
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1610-
self.into_status().fmt(f)
1610+
write!(f, "process exited unsuccessfully: {}", self.into_status())
16111611
}
16121612
}
16131613

0 commit comments

Comments
 (0)