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

[11.x] Use a generic message for ValidationException #50556

Closed
wants to merge 2 commits into from

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Mar 14, 2024

This PR partially reverts #35524 without any breaking changes.

Since this message is not something that ever should reach an end user, these should also never be translated. Because we're pulling messages from the error bag of the validator, part of the message was translated, while the other one we computed wasn't. The original intent of #35524 of showing the first error message was good but it's at the same time weird to just show the first error message and not the other potential ones. Since the error messages are user-facing and the exception message developer facing, we've decided to move this exception message back to a generic one. Also to prevent issues like #50534.

@driesvints driesvints changed the title Use a generic message for ValidationException [11.x] Use a generic message for ValidationException Mar 14, 2024
@driesvints driesvints marked this pull request as draft March 14, 2024 14:59
@driesvints driesvints marked this pull request as ready for review March 14, 2024 15:12
@driesvints driesvints requested a review from taylorotwell March 14, 2024 15:13
@driesvints driesvints closed this Mar 14, 2024
@driesvints driesvints deleted the use-generic-message-for-exception branch March 14, 2024 15:37
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.

1 participant