diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-03-20 07:52:38 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-03-20 10:53:46 +0200 |
commit | a2bee6568dee4c23ed008e657f38352da4190f24 (patch) | |
tree | 7fb2550a80b71692395155b8c4c4dc7c31f27c77 /src/error.rs | |
parent | 873738f0e1dc01f2a75e5e60ae68094b4558ed07 (diff) | |
download | obnam2-a2bee6568dee4c23ed008e657f38352da4190f24.tar.gz |
feat: allow user to choose backup schema version for new backups
The way this is currently implemented resulted in a lot of code
duplication in src/generation.rs. This should be refactored later. My
first attempt to do it by adding a trait for a schema variant failed.
Sponsored-by: author
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index cf18c83..7812081 100644 --- a/src/error.rs +++ b/src/error.rs @@ -6,6 +6,7 @@ use crate::client::ClientError; use crate::cmd::restore::RestoreError; use crate::config::ClientConfigError; use crate::db::DatabaseError; +use crate::dbgen::GenerationDbError; use crate::generation::{LocalGenerationError, NascentError}; use crate::genlist::GenerationListError; use crate::passwords::PasswordError; @@ -52,6 +53,10 @@ pub enum ObnamError { #[error(transparent)] LocalGenerationError(#[from] LocalGenerationError), + /// Error from generation database. + #[error(transparent)] + GenerationDb(#[from] GenerationDbError), + /// Error using a Database. #[error(transparent)] Database(#[from] DatabaseError), |