1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum ConfigError {
5 #[error("I/O error: {0}")]
6 Io(#[from] std::io::Error),
7
8 #[error("TOML parse error: {0}")]
9 Toml(#[from] toml::de::Error),
10
11 #[error("invalid config: {0}")]
12 Invalid(String),
13}