Skip to content

Commit

Permalink
cleanup ErrorKind
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Oct 28, 2024
1 parent 8d99678 commit 9eaa796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/core/src/archiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
8 changes: 2 additions & 6 deletions crates/core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -440,10 +440,6 @@ pub enum ErrorKind {
Parsing,
/// Password Error
Password,
/// Permission Error
Permission,
/// Processing Error
Processing,
/// Repository Error
Repository,
/// Something is not supported
Expand Down

0 comments on commit 9eaa796

Please sign in to comment.