onflow / flow-evm-gateway

FlowEVM Gateway implements an Ethereum-equivalent JSON-RPC API for EVM clients to use
https://developers.flow.com/evm/about
Apache License 2.0
11 stars 10 forks source link

Enrich the information contained in error messages #446

Closed m-Peter closed 3 months ago

m-Peter commented 3 months ago

For example:

errors.New("endpoint is not supported")

The above error message should ideally describe which endpoint is the one that is not supported.

ErrInvalidRange = fmt.Errorf("%w: %w", ErrInvalid, errors.New("invalid block height range"))

The above error message should ideally describe which was the provided block height range.