pub trait ExitStatusExt {
// Required method
fn check_status(&mut self, stderr: File) -> Result<()>;
}
Expand description
Helpers intended for std::process::ExitStatus
.
Required Methods§
Sourcefn check_status(&mut self, stderr: File) -> Result<()>
fn check_status(&mut self, stderr: File) -> Result<()>
If the exit status signals it was not successful, return an error. Note that we intentionally don’t include the command string in the output; we leave it to the caller to add that if they want, as it may be verbose.