#[derive(Debug, thiserror::Error)]
pub enum ConfigError {
#[error("cannot read {path}: {source}")]
Read {
path: String,
source: std::io::Error,
},
#[error("invalid TOML: {0}")]
Syntax(String),
#[error("{0}")]
Interpolation(String),
#[error("invalid configuration:\n - {}", .0.join("\n - "))]
Invalid(Vec<String>),
}