py-evm icon indicating copy to clipboard operation
py-evm copied to clipboard

Exceptions without error messages return no info to web3

Open carver opened this issue 7 years ago • 0 comments

  • py-evm Version: master

What is wrong?

I tried to request data on a light client, when I wasn't connected to any peers. As expected, trinity raised a NoConnectedPeers exception, but error field in the response is empty

How can it be fixed

Include the exception type in the error field during a failed rpc request. Maybe only do this if the message is empty?

carver avatar Nov 29 '18 22:11 carver