-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More user friendly Anchor error codes #67
Comments
Hey @DXist! Thank you for the report! We are not handling the anchor errors and it's not our priority to do so right now but if you want, you can take a look at it and create a PR 💪 If you have a problem like this, just convert the Your error is |
Yes, I've converted these codes manually. But it took me some time to understand that this error code comes from Anchor and to find the enum with codes. If it's not possible to separate Anchor error codes from error codes of other programs then it would be good enough just to convert it to decimal value and provide the link to the enum documentation. Can we introduce 'improvement' label for this issue to mark low priority status? |
I came across multiple Anchor errors like
It would be more helpful instead of hex codes to get user friendly error output based on https://docs.rs/anchor-lang/latest/src/anchor_lang/error.rs.html#22
The text was updated successfully, but these errors were encountered: