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] Improve error handling when using entry publish actions #11289

Merged

Conversation

ryanmitchell
Copy link
Contributor

@ryanmitchell ryanmitchell commented Dec 19, 2024

When firing an exception in a EntrySaving event (to create a toast) I noticed that PublishActions don't handle response the same way as PublishForms.

This PR brings the code inline - literally copy/pasting.

Guided by @duncanmcclean

@jasonvarga jasonvarga changed the title [5.x] Copy handleAxiosError from PublishForm [5.x] Improve error handling when using entry publish actions Dec 19, 2024
@jasonvarga jasonvarga merged commit 0b6e0d2 into statamic:5.x Dec 19, 2024
18 checks passed
@ryanmitchell ryanmitchell deleted the fix/validation-exceptions-publish-actions branch December 20, 2024 08:44
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