From e7d3954b726d26ac5fcc4e4011b0f50cd8375e79 Mon Sep 17 00:00:00 2001 From: Todd Stock Date: Wed, 25 Nov 2020 10:49:48 -0500 Subject: extend error message --- ethclient/ethclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ethclient') diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index c44a3e9..6dd4df8 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -126,7 +126,7 @@ func (ec *Client) getBlock(ctx context.Context, method string, args ...interface if len(body.BlockExtraData) != 0 { blockExtraDataDecoded, err := hexutil.Decode(body.BlockExtraData) if err != nil { - return nil, err + return nil, fmt.Errorf("problem parsing block extra data: %w", err) } blockExtraData = &blockExtraDataDecoded } -- cgit v1.2.3-70-g09d2