aboutsummaryrefslogtreecommitdiff
path: root/ethclient
diff options
context:
space:
mode:
authorTodd Stock <[email protected]>2020-11-25 10:49:48 -0500
committerTodd Stock <[email protected]>2020-11-25 10:49:48 -0500
commite7d3954b726d26ac5fcc4e4011b0f50cd8375e79 (patch)
tree4fe0127968b5559bc6d48b4604e4b0a76257d01c /ethclient
parent57cda741e1ecb09338cb9ebae572cb41d7920fc1 (diff)
extend error message
Diffstat (limited to 'ethclient')
-rw-r--r--ethclient/ethclient.go2
1 files changed, 1 insertions, 1 deletions
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
}