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

[5.x] Refactor frontend formFailure to handle precognitive and fetch exceptions #10376

Conversation

ryanmitchell
Copy link
Contributor

As discussed here, throwing a ValidationException during a precognitive/fetch request returns a different errors response format to 'normal' errors, due to how formFailure was handling it.

This PR updates the logic to return the standard ValidationException response when the request wants it.

@ryanmitchell ryanmitchell marked this pull request as ready for review July 1, 2024 10:42
@ryanmitchell ryanmitchell changed the title [5.x] Refactor frontend formFailure to handle precognitive exceptions [5.x] Refactor frontend formFailure to handle precognitive and fetch exceptions Jul 1, 2024
@jasonvarga jasonvarga merged commit dacb506 into statamic:5.x Jul 1, 2024
16 checks passed
@ryanmitchell ryanmitchell deleted the fix/throwing-validation-during-precog-requests branch July 1, 2024 20:04
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.

2 participants