Skip to content
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

Add more error formatting for REST responses #27

Conversation

jasonpaulos
Copy link

This PR has the following benefits:

  • Error messages are no longer encased in {"message":"..."}
  • HTML-escaped characters are now decoded for all error messages that adhere to generatedV2.ErrorResponse

Both of these changes make v2 algod responses behave more like v1 responses.

Copy link
Owner

@algochoi algochoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! Can confirm the changes work with local tests as expected 👍

@algochoi algochoi merged commit e1e2a4b into algochoi:v2-goal-migration Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants