Return beacon_chain_error if blob query from BeaconStore returns an error

This commit is contained in:
Jimmy Chen 2023-01-04 01:23:31 +11:00
parent f6d5e8fea3
commit 11736b68d3

View File

@ -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())),
}
}
}