about summary refs log tree commit diff
path: root/tvix/store
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-03-16T23·20+0100
committerclbot <clbot@tvl.fyi>2023-03-17T07·49+0000
commit7a966b25407810d22bf8ebc28a46ce012d2cfab9 (patch)
treedf7c98d77a37485c542f8c65e781a5d20a7b3af4 /tvix/store
parent530cb920b5aadc768c0273b8150dc04fdf444359 (diff)
chore(tvix/store/blobreader): clippy lint r/6016
Change-Id: I4c85425782878295277abe6dc91a1b570768f7fa
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8318
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store')
-rw-r--r--tvix/store/src/blobreader.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tvix/store/src/blobreader.rs b/tvix/store/src/blobreader.rs
index ea9239300237..4733a29a364d 100644
--- a/tvix/store/src/blobreader.rs
+++ b/tvix/store/src/blobreader.rs
@@ -102,7 +102,10 @@ impl<CS: ChunkService> std::io::Read for BlobReader<'_, CS> {
                         chunk_meta.digest.clone().try_into().map_err(|_e| {
                             std::io::Error::new(
                                 io::ErrorKind::InvalidData,
-                                format!("chunk in chunkmeta has wrong digest size"),
+                                format!(
+                                    "chunk in chunkmeta has wrong digest size, expected 32, got {}",
+                                    chunk_meta.digest.len(),
+                                ),
                             )
                         })?;
                     match self.chunk_service.get(&chunk_meta_digest) {