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

Validation Exception don't return the response status as error #213

Closed
jimblue opened this issue Nov 12, 2017 · 0 comments
Closed

Validation Exception don't return the response status as error #213

jimblue opened this issue Nov 12, 2017 · 0 comments

Comments

@jimblue
Copy link
Contributor

jimblue commented Nov 12, 2017

Hi,

I've just notice while working on ajax contact form if the validation failed the response from Grav have the wrong status success when it should be error.

https://github.com/getgrav/grav/blob/31e3c1c295aecb1f5a8a452d0be8049e4a2b1cdf/system/src/Grav/Common/Data/ValidationException.php#L13

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

No branches or pull requests

2 participants