ExitStatusError: Be more verbose in Display impl
Co-authored-by: Jane Lusby <jlusby@yaah.dev>
This commit is contained in:
parent
8832b0a81c
commit
bb4ef68639
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user