#![allow(clippy::module_name_repetitions, clippy::enum_variant_names)]
use thiserror::Error as ThisError;
use crate::setup::SetupError;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(ThisError, Debug)]
pub enum Error {
#[error("error reading config")]
ReadConfigError {
filename: String,
source: std::io::Error,
},
#[error("error during app setup")]
SetupError(#[source] SetupError),
#[error("error serializing config")]
SerializeConfigError(#[source] toml::ser::Error),
#[error("error deserializing config")]
DeserializeConfigError(#[source] toml::de::Error),
}