diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-07-22 06:40:53 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-07-22 06:40:53 +0000 |
commit | be9a3c656938e2aefc21fdb01d1403df05b16893 (patch) | |
tree | 15188809d0843f5aae46199ef7acfdfa539cd223 /src/client.rs | |
parent | fb03ec58ee29638cf3492dd2077a7d1f373805e8 (diff) | |
parent | 500c06609b2408fed801840983e261fd87b15ebe (diff) | |
download | obnam2-be9a3c656938e2aefc21fdb01d1403df05b16893.tar.gz |
Merge branch 'feature/114-replace-string-with-chunkid' into 'main'
In errors, store chunk ids as `ChunkId`, not `String`
Closes #114
See merge request obnam/obnam!165
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.rs b/src/client.rs index 9862ad3..f90d377 100644 --- a/src/client.rs +++ b/src/client.rs @@ -27,10 +27,10 @@ pub enum ClientError { NotFound(String), #[error("Server does not have chunk {0}")] - ChunkNotFound(String), + ChunkNotFound(ChunkId), #[error("Server does not have generation {0}")] - GenerationNotFound(String), + GenerationNotFound(ChunkId), #[error("Server response did not have a 'chunk-meta' header for chunk {0}")] NoChunkMeta(ChunkId), |