summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
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),
}