blob: dc132f484744450070183cc971b0a7e61a940c9c (
plain) (
tree)
|
|
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("unknown custom directory '{0}'")]
CustomDirectory(String),
#[error("invalid directory index '{0}'")]
InvalidIndex(String),
#[error("no directory index given")]
NoIndex,
#[error("invalid directory '{0}'")]
InvalidDirectory(String),
#[error("Only exactly one user allowed in config")]
MultiUser,
#[error("OsString couldn't be converted to string")]
InvalidOsString,
#[error("json: {source}")]
SerdeJson {
#[from]
source: serde_json::Error,
},
#[error("io: {source}")]
Io {
#[from]
source: std::io::Error,
}
}
|