Closed m-Peter closed 1 month ago
The recent changes significantly enhance error handling and logging across various API methods, improving the clarity and context of error messages. The updates introduce more descriptive error types and refine the handling of invalid inputs, resulting in better debugging capabilities and a more robust API experience overall.
Files | Change Summary |
---|---|
api/api.go , config/config.go , services/ingestion/engine.go , storage/pebble/* |
Enhanced error handling with more descriptive messages, refined input validation, and contextual information added. |
models/transaction.go , models/errors/errors.go |
Improved error message formatting and introduced new error types for clarity and consistency. |
storage/index_testsuite.go |
Updated test cases to reflect new error constants, enhancing semantic clarity in error handling during testing. |
Objective | Addressed | Explanation |
---|---|---|
Enrich the information contained in error messages (#446) | β | |
Describe unsupported endpoints in error messages (#446) | β | |
Specify block height range in error messages (#446) | β |
In the code where whispers dwell,
Errors sang, now clear as a bell.
With messages bright, they guide the way,
Helping us troubleshoot day by day.
Hops of joy through the logic we trace,
A rabbit's cheer for this error embrace! π°β¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closes: https://github.com/onflow/flow-evm-gateway/issues/446
Description
Adds more details, wherever applicable, for error messages. This will allow us to extract more information from looking at logged errors. Various codebase improvements regarding errors.
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
Bug Fixes
New Features
Tests