Skip to content

feat(ui): display the actual error message on unpublish if available #11898

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

Merged

Conversation

tak-amboss
Copy link
Contributor

What?

If an error occurs while unpublishing a document in the edit view UI, the toast which shows the error message now displays the actual message which is sent from the server, if available.

Why?

Only a generic error message was shown if an unpublish operation failed. Some errors might be solvable by the user, so that there is value in showing the actual, actionable error message instead of a generic one.

How?

The server response is parsed for error message if an unpublish operation fails and displayed in the toast, instead of the generic error message.

image

@DanRibbens DanRibbens merged commit b3cac75 into payloadcms:main May 7, 2025
79 checks passed
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