summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-12-30 15:34:08 +0200
committerLars Wirzenius <liw@liw.fi>2020-12-30 15:34:08 +0200
commit0e7a851fb6578eee5812e69bc11772142bc9fb54 (patch)
tree48a3200af495193531ee3e0353e4f72821d97263 /src/error.rs
parentd590b44ed1481702188f9e540adf85192690333c (diff)
downloadobnam2-0e7a851fb6578eee5812e69bc11772142bc9fb54.tar.gz
fix: add missing source files
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
new file mode 100644
index 0000000..1e750e5
--- /dev/null
+++ b/src/error.rs
@@ -0,0 +1,8 @@
+use thiserror::Error;
+
+/// Define all the kinds of errors any part of this crate can return.
+#[derive(Debug, Error)]
+pub enum ObnamError {
+ #[error("Can't find backup '{0}'")]
+ UnknownGeneration(String),
+}