mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Return beacon_chain_error if blob query from BeaconStore returns an error
This commit is contained in:
@@ -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())),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user