aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3/get.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-06 22:25:23 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-06 22:25:23 +0200
commit907054775dc71a10a92ab96112889db9113130ab (patch)
treeebe24031883a8293d9add6ca6b49b80cb15d1d15 /src/api/s3/get.rs
parent6b958979bd898a576ee9c1021cc908b3ec75ffc7 (diff)
downloadgarage-907054775dc71a10a92ab96112889db9113130ab.tar.gz
garage-907054775dc71a10a92ab96112889db9113130ab.zip
Faster copy, better get error message
Diffstat (limited to 'src/api/s3/get.rs')
-rw-r--r--src/api/s3/get.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/s3/get.rs b/src/api/s3/get.rs
index dfc284fe..dd95f6e7 100644
--- a/src/api/s3/get.rs
+++ b/src/api/s3/get.rs
@@ -274,11 +274,11 @@ pub async fn handle_get(
.block_manager
.rpc_get_block_streaming(&hash, Some(order_stream.order(i as u64)))
.await
- .unwrap_or_else(|_| {
+ .unwrap_or_else(|e| {
Box::pin(futures::stream::once(async move {
Err(std::io::Error::new(
std::io::ErrorKind::Other,
- "Could not get next block",
+ format!("Could not get block {}: {}", i, e),
))
}))
})