Return beacon_chain_error
if blob query from BeaconStore returns an error
This commit is contained in:
parent
f6d5e8fea3
commit
11736b68d3
@ -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())),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user