use std::path::PathBuf;
#[derive(Debug, thiserror::Error)]
pub(crate) enum ConfigError {
#[error("failed to read config file '{path}': {source}")]
Read {
path: PathBuf,
source: std::io::Error,
},
#[error("failed to parse config file '{path}': {source}")]
Parse {
path: PathBuf,
source: toml::de::Error,
},
#[error("invalid config: {0}")]
Validation(String),
}