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

fallback error when invalid json value is included #706

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

yohm
Copy link
Member

@yohm yohm commented Jun 1, 2020

When result contains an invalid JSON value such as Infinity, JSON.pretty_generate raises an error.
To fallback the error, we catch JSON::GeneratorError and replace it with to_json.

When result contains an invalid JSON value such as Infinity,
JSON.pretty_generate raises an error.
To fallback the error, we catch JSON::GeneratorError and replace it
with `to_json`.
@yohm yohm added the bug label Jun 1, 2020
@yohm yohm added this to the v3.9.0 milestone Jun 1, 2020
@yohm yohm self-assigned this Jun 1, 2020
@yohm yohm merged commit da5d270 into develop Jun 1, 2020
@yohm yohm deleted the pretty_generate_error branch June 1, 2020 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant