summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 360e62d..a35a99c 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -13,6 +13,12 @@ pub enum ObnamError {
#[error("Server response did not have a 'chunk-meta' header for chunk {0}")]
NoChunkMeta(String),
- #[error("Wrong checksum for chunk {0}")]
- WrongChecksum(String),
+ #[error("Wrong checksum for chunk {0}, got {1}, expected {2}")]
+ WrongChecksum(String, String, String),
+
+ #[error("Chunk is missing: {0}")]
+ MissingChunk(String),
+
+ #[error("Chunk is in store too many times: {0}")]
+ DuplicateChunk(String),
}