Closed m-Peter closed 2 months ago
The changes introduce a new constant errMethodNotFound
with a value of -32601
in the responseHandler
struct of the api/server.go
file. This constant is incorporated into the Write
method's error handling logic, adding a case for errMethodNotFound
that currently executes a break
statement. This modification clarifies the recognition of this specific error code within the existing error handling framework.
Files | Change Summary |
---|---|
api/server.go | Added constant errMethodNotFound with value -32601 and included it in the Write method's error handling. |
In the meadow where bunnies hop,
A new code was added, oh what a pop!
WitherrMethodNotFound
, we cheer and we play,
Clarity blooms in a bright, sunny way.
Hopping along, we dance with delight,
For every change makes our code just right! 🐰✨
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?
Description
Logs with such error messages are not really useful, as they are basically user errors, coming from calling non-existent JSON-RPC API endpoints.
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
Method Not Found
error code, enhancing clarity in the application's response to this scenario.