From 9eaa796c10bda8937eb31f5681dd18625a846376 Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Mon, 28 Oct 2024 23:10:57 +0100 Subject: [PATCH] cleanup ErrorKind Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com> --- crates/core/src/archiver.rs | 2 +- crates/core/src/error.rs | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/crates/core/src/archiver.rs b/crates/core/src/archiver.rs index 420f8d52..e9ab4ae3 100644 --- a/crates/core/src/archiver.rs +++ b/crates/core/src/archiver.rs @@ -221,7 +221,7 @@ impl<'a, BE: DecryptFullBackend, I: ReadGlobalIndex> Archiver<'a, BE, I> { summary.finalize(self.snap.time).map_err(|err| { RusticError::with_source( - ErrorKind::Processing, + ErrorKind::Internal, "Could not finalize summary, please check the logs for more information.", err, ) diff --git a/crates/core/src/error.rs b/crates/core/src/error.rs index 7fdd3022..2515d1b0 100644 --- a/crates/core/src/error.rs +++ b/crates/core/src/error.rs @@ -428,10 +428,10 @@ pub enum ErrorKind { /// Blob, Pack, Index or Tree Error // These are deep errors that are not expected to be handled by the user. Internal, - /// IO Error - Io, /// Invalid Input Error InvalidInput, + /// IO Error + Io, /// Key Error Key, /// Multithreading Error @@ -440,10 +440,6 @@ pub enum ErrorKind { Parsing, /// Password Error Password, - /// Permission Error - Permission, - /// Processing Error - Processing, /// Repository Error Repository, /// Something is not supported