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

Ensure filter parse errors generate 422 not 500 #6228

Merged
merged 1 commit into from Dec 15, 2015

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented Dec 15, 2015

There's definitely more elegant solutions to be had to handling parse errors from GQL (cc @halfdan 😉), but this quick fix at least ensures we don't generate 500 errors.

no issue

  • This resolves some issues we've seen with Ghost throwing 500 errors when the filter parameter is incorrectly structured/formatted

no issue

- This resolves some issues we've seen with Ghost throwing 500 errors when the filter parameter is incorrectly structured/formatted
sebgie added a commit that referenced this pull request Dec 15, 2015
Ensure filter parse errors generate 422 not 500
@sebgie sebgie merged commit 5184d6b into TryGhost:master Dec 15, 2015
@ErisDS ErisDS deleted the filter-error-handling branch February 9, 2016 12:21
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.

None yet

2 participants