ExitStatusError: Be more verbose in Display impl

Co-authored-by: Jane Lusby <jlusby@yaah.dev>
This commit is contained in:
Ian Jackson 2021-05-04 14:31:48 +01:00
parent 8832b0a81c
commit bb4ef68639

View File

@ -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())
}
}