everruns_core/config/error.rs
1/// Errors that can occur when loading configuration from environment variables.
2#[derive(Debug, thiserror::Error)]
3pub enum ConfigError {
4 /// A required environment variable was not set.
5 #[error("required env var {var} is not set")]
6 Missing { var: String },
7
8 /// An environment variable had a value that could not be parsed.
9 #[error("env var {var} has invalid value \"{value}\": {reason}")]
10 Invalid {
11 var: String,
12 value: String,
13 reason: String,
14 },
15}