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

Fix unhandled error when parsing custom scalar literals. #1126

Merged
merged 1 commit into from
Dec 7, 2017
Merged

Conversation

leebyron
Copy link
Contributor

@leebyron leebyron commented Dec 7, 2017

Fixes #910

This factors out the enum value validation from scalar value validation and ensures the same try/catch is used in isValidLiteralValue as isValidJSValue and protecting from errors in valueFromAST.

Fixes #910

This factors out the enum value validation from scalar value validation and ensures the same try/catch is used in isValidLiteralValue as isValidJSValue and protecting from errors in valueFromAST.
@leebyron
Copy link
Contributor Author

leebyron commented Dec 7, 2017

Ideally this also allows for custom error messages as suggested in #821 when relevant.

@leebyron
Copy link
Contributor Author

leebyron commented Dec 7, 2017

Looks like improving the issue raised in #821 will require a different and non trivial approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants