mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
RPC: Surface underlying error when failing to return a state. (#9024)
This commit is contained in:
parent
71fd747dca
commit
6981b16ecd
@ -68,7 +68,7 @@ func (bs *Server) ListValidatorBalances(
|
||||
}
|
||||
requestedState, err := bs.StateGen.StateBySlot(ctx, startSlot)
|
||||
if err != nil {
|
||||
return nil, status.Errorf(codes.Internal, "Could not get state")
|
||||
return nil, status.Errorf(codes.Internal, "Could not get state: %v", err)
|
||||
}
|
||||
|
||||
vals := requestedState.Validators()
|
||||
|
Loading…
Reference in New Issue
Block a user