pub type Result = std::result::Result; #[derive(Debug, PartialEq, Eq, 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, }