summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-03-23 05:53:51 +0000
committerLars Wirzenius <liw@liw.fi>2022-03-23 05:53:51 +0000
commitf44770ab64d465c099ca893a0536e467052f9d3b (patch)
treee45cfffc298033cc34c8b9d7bed894e4696c55f8 /src/error.rs
parent4a9b26903d48d622f7f2a01eb54eec88e92da868 (diff)
parentd692b1877a18e83e23cfbcad1b5e9f91f561e7c1 (diff)
downloadobnam2-f44770ab64d465c099ca893a0536e467052f9d3b.tar.gz
Merge branch 'liw/trust-root' into 'main'
Add chunk that lists all generations Closes #62 and #34 See merge request obnam/obnam!224
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 7812081..9c9b432 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,6 +1,7 @@
//! Errors from Obnam client.
use crate::backup_run::BackupError;
+use crate::chunk::ClientTrustError;
use crate::cipher::CipherError;
use crate::client::ClientError;
use crate::cmd::restore::RestoreError;
@@ -25,6 +26,10 @@ pub enum ObnamError {
#[error(transparent)]
GenerationListError(#[from] GenerationListError),
+ /// Error about client trust chunks.
+ #[error(transparent)]
+ ClientTrust(#[from] ClientTrustError),
+
/// Error saving passwords.
#[error("couldn't save passwords to {0}: {1}")]
PasswordSave(PathBuf, PasswordError),