propel_cloud/gcloud.rs
1#[derive(Debug, thiserror::Error)]
2pub enum GcloudError {
3 #[error("gcloud CLI not found — install: https://cloud.google.com/sdk/docs/install")]
4 NotFound { source: std::io::Error },
5
6 #[error("gcloud command failed: {args:?}\n{stderr}")]
7 CommandFailed { args: Vec<String>, stderr: String },
8
9 #[error("gcloud output was not valid UTF-8")]
10 InvalidUtf8 { source: std::string::FromUtf8Error },
11
12 #[error("failed to write to gcloud stdin")]
13 StdinWrite { source: std::io::Error },
14}