Closed halink0803 closed 1 year ago
Thanks for the feedback. Just open a PR #97, I think it can solve this problem. IMO, I prefer to return the error directly instead of have a custom function to parse it. wdyt?
Thanks for the feedback. Just open a PR #97, I think it can solve this problem. IMO, I prefer to return the error directly instead of have a custom function to parse it. wdyt?
Yes, I also prefer to have the error return directly.
Solana return the response under the structure of
Adding unnecessary prefix make it impossible to parse the error response to object and hard to check the error. Remove the prefix make is easier to work with error response.