use thiserror::Error;
#[derive(Error, Debug)]
pub enum RustupTargetError {
#[error("Failed to run process")]
ProcessFailed(#[from] std::io::Error),
#[error("rustup exited with code {exitcode:?} and stderr {stderr:?} and stdout {stdout:?}")]
RustupError {
exitcode: Option<i32>,
stderr: String,
stdout: String,
},
}