diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-12-31 15:29:19 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-12-31 15:29:19 +0000 |
commit | a7336cfa6cb3f5de69c994a5e61868d49756b1ad (patch) | |
tree | 9388040e96f3a42679860f70c4540aedceff329d /src/error.rs | |
parent | 85d0ce236677c35c85d76bfc345e36d29f585390 (diff) | |
parent | 6171b3c2eb8ec9a7734e8ce00c81999500b5fbe6 (diff) | |
download | obnam2-a7336cfa6cb3f5de69c994a5e61868d49756b1ad.tar.gz |
Merge branch 'inc' into 'main'
feat: incremental backup
Closes #8
See merge request larswirzenius/obnam!53
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 1e750e5..3b3f573 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,3 +1,4 @@ +use std::path::PathBuf; use thiserror::Error; /// Define all the kinds of errors any part of this crate can return. @@ -5,4 +6,7 @@ use thiserror::Error; pub enum ObnamError { #[error("Can't find backup '{0}'")] UnknownGeneration(String), + + #[error("Generation has more than one file with the name {0}")] + TooManyFiles(PathBuf), } |