command_ext/error/mod.rs
1use std::process::ExitStatus;
2
3use thiserror::Error;
4
5#[derive(Error, Debug)]
6/// An error when checking the result of a command
7pub enum CommandExtError {
8 #[error("Command failed with status ({status}), stdout ({stdout}), stderr ({stderr})")]
9 Check {
10 status: ExitStatus,
11 stdout: String,
12 stderr: String,
13 },
14 #[error(transparent)]
15 StdIoError(#[from] std::io::Error),
16}