Wrap errors correctly so that users get readable transaction failures #325
Labels
First Issue
This is a good first issue
Gravity Module
cosmos sdk module
help wanted
Extra attention is needed
Nice To Have
Nice to have but don't spend too much time here.
https://github.com/althea-net/cosmos-gravity-bridge/pull/323/files
The content of this pr is an example of an error type that would not be returned correctly to the user. In the before case the user would see an 'unknown internal error' in the response for their transaction if they hit this error case.
If the error is wrapped properly the user will see the error message in the 'raw_log' section of the tx response, greatly easing debugging.
There are many instances in the codebase of this mistake, and the above example pr only corrects one of them. This ticket is for the rest.
The text was updated successfully, but these errors were encountered: