summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-12-31 15:32:51 +0200
committerLars Wirzenius <liw@liw.fi>2020-12-31 17:25:42 +0200
commit6171b3c2eb8ec9a7734e8ce00c81999500b5fbe6 (patch)
tree9388040e96f3a42679860f70c4540aedceff329d /src/error.rs
parent85d0ce236677c35c85d76bfc345e36d29f585390 (diff)
downloadobnam2-6171b3c2eb8ec9a7734e8ce00c81999500b5fbe6.tar.gz
feat: incremental backup
This uses the previous, latest generation as a guideline to see what is new or changed.
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
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),
}