Skip to content

Commit

Permalink
chore: improve HeaderByNumber error message (#3356)
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera authored Jan 17, 2025
1 parent cfaaab8 commit 8166e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zetaclient/chains/evm/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func CheckRPCStatus(ctx context.Context, client interfaces.EVMRPCClient) (time.T
// query latest block header
header, err := client.HeaderByNumber(ctx, new(big.Int).SetUint64(bn))
if err != nil {
return time.Time{}, errors.Wrap(err, "RPC failed on HeaderByNumber, RPC down?")
return time.Time{}, errors.Wrapf(err, "RPC failed on HeaderByNumber(%d), RPC down?", bn)
}

// convert block time to UTC
Expand Down

0 comments on commit 8166e38

Please sign in to comment.