1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::process::ExitStatus;

use thiserror::Error;

#[derive(Error, Debug)]
/// An error when checking the result of a command
pub enum CommandExtError {
    #[error("Command failed with status ({status}), stdout ({stdout}), stderr ({stderr})")]
    Check {
        status: ExitStatus,
        stdout: String,
        stderr: String,
    },
    #[error(transparent)]
    StdIoError(#[from] std::io::Error),
}