diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-01-04 18:03:04 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-01-04 18:03:04 +0000 |
commit | 678e65c57ae983ef66d16e92965814b0f3f0d73f (patch) | |
tree | 260f2edd09047de5843a168ce59f284ac3445ce7 /src/error.rs | |
parent | 6c00201a0aaf75071388981591d76bebdc7b1f03 (diff) | |
parent | 34a9fc7cf754552b02b194f7e1186adc9414a623 (diff) | |
download | obnam2-678e65c57ae983ef66d16e92965814b0f3f0d73f.tar.gz |
Merge branch 'checksum' into 'main'
Checksum
See merge request larswirzenius/obnam!61
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), } |