Skip to content

Commit

Permalink
chore: improve HeaderByNumber error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jan 15, 2025
1 parent 7eea20e commit 1ac5dfa
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)

Check warning on line 79 in zetaclient/chains/evm/rpc/rpc.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/evm/rpc/rpc.go#L79

Added line #L79 was not covered by tests
}

// convert block time to UTC
Expand Down

0 comments on commit 1ac5dfa

Please sign in to comment.