From 3e1cb020d5449849b37874f91cadfa4a9c878747 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Fri, 6 Sep 2024 10:56:30 +0200 Subject: initial commit, can save index, no modification check --- src/error.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/error.rs (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs new file mode 100644 index 0000000..77eab69 --- /dev/null +++ b/src/error.rs @@ -0,0 +1,19 @@ +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, +} -- cgit v1.2.3