use std::path::PathBuf;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum ConfigError {
#[error("Config file not found: {0}")]
NotFound(PathBuf),
#[error("Failed to read config at {}: {source}", path.display())]
Read {
path: PathBuf,
#[source]
source: std::io::Error,
},
#[error("Failed to parse config at {}: {source}", path.display())]
Parse {
path: PathBuf,
#[source]
source: toml::de::Error,
},
}