diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-01-04 18:57:49 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-01-04 20:02:06 +0200 |
commit | 8efabc60f87e5462b01f4832d575f68382929624 (patch) | |
tree | 422b3941b6867871486df2198aef0e431c6b95ac /src/error.rs | |
parent | 650b7cee5700eae9ab6c300fbdb816dead6f01f5 (diff) | |
download | obnam2-8efabc60f87e5462b01f4832d575f68382929624.tar.gz |
feat: verify checksum of chunks downloaded from server
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 3b3f573..360e62d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -9,4 +9,10 @@ pub enum ObnamError { #[error("Generation has more than one file with the name {0}")] TooManyFiles(PathBuf), + + #[error("Server response did not have a 'chunk-meta' header for chunk {0}")] + NoChunkMeta(String), + + #[error("Wrong checksum for chunk {0}")] + WrongChecksum(String), } |