Skip to content

Fix unhandled error when parsing custom scalar literals.#1126

Merged
leebyron merged 1 commit intomasterfrom
fix-910
Dec 7, 2017
Merged

Fix unhandled error when parsing custom scalar literals.#1126
leebyron merged 1 commit intomasterfrom
fix-910

Conversation

@leebyron
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

leebyron commented Dec 7, 2017

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

@leebyron
Copy link
Copy Markdown
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