From ab7f99e061e54924899b778e929dd2e17c8792d9 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Fri, 6 Sep 2024 13:47:47 +0200 Subject: add root index and directory creation --- src/error.rs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index 77eab69..dc132f4 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,6 +1,6 @@ pub type Result = std::result::Result; -#[derive(Debug, PartialEq, Eq, thiserror::Error)] +#[derive(Debug, thiserror::Error)] pub enum Error { #[error("unknown custom directory '{0}'")] CustomDirectory(String), @@ -16,4 +16,19 @@ pub enum Error { #[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, + } } -- cgit v1.2.3