rustup_configurator/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum RustupTargetError {
5    #[error("Failed to run process")]
6    ProcessFailed(#[from] std::io::Error),
7    #[error("rustup exited with code {exitcode:?} and stderr {stderr:?} and stdout {stdout:?}")]
8    RustupError {
9        exitcode: Option<i32>,
10        stderr: String,
11        stdout: String,
12    },
13}