From 11736b68d3139df2cca465f7ea9aafe2365b89be Mon Sep 17 00:00:00 2001 From: Jimmy Chen Date: Wed, 4 Jan 2023 01:23:31 +1100 Subject: [PATCH] Return `beacon_chain_error` if blob query from BeaconStore returns an error --- beacon_node/http_api/src/block_id.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/beacon_node/http_api/src/block_id.rs b/beacon_node/http_api/src/block_id.rs index 2578b4a67c..f08e4c200d 100644 --- a/beacon_node/http_api/src/block_id.rs +++ b/beacon_node/http_api/src/block_id.rs @@ -249,11 +249,7 @@ impl BlockId { "Blob with block root {} is not in the store", root ))), - // should we use `warp_utils::reject::beacon_chain_error` instead? - Err(e) => Err(warp_utils::reject::custom_not_found(format!( - "Error fetching blob with block root {}: {:?}", - root, e - ))), + Err(e) => Err(warp_utils::reject::beacon_chain_error(e.into())), } } }