diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-06 22:25:23 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-06 22:25:23 +0200 |
commit | 907054775dc71a10a92ab96112889db9113130ab (patch) | |
tree | ebe24031883a8293d9add6ca6b49b80cb15d1d15 /src/api/s3/get.rs | |
parent | 6b958979bd898a576ee9c1021cc908b3ec75ffc7 (diff) | |
download | garage-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.rs | 4 |
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), )) })) }) |