You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would solve #49653 and also play nice with #[WithHttpStatus(4xx)].
The idea is any HttpException can be given a translatable message:
throw new HttpException(400, t('id'));
Im just not sure if the normalizer should expose any translatable message, or just 4xx ones.
edit: actually i think translatable messages should always be exposed, even 5xx responses could use some helpful hints for the user 😅
but then the line between what's exposed, and what's not becomes super thin, so maybe this needs a new new ExposedHttpException() / new HttpException(expose: true)
Example
No response
The text was updated successfully, but these errors were encountered:
carsonbot
added
the
RFC
RFC = Request For Comments (proposals about features that you want to be discussed)
label
Mar 14, 2023
Description
This would solve #49653 and also play nice with
#[WithHttpStatus(4xx)]
.The idea is any HttpException can be given a translatable message:
Im just not sure if the normalizer should expose any translatable message, or just 4xx ones.edit: actually i think translatable messages should always be exposed, even 5xx responses could use some helpful hints for the user 😅
but then the line between what's exposed, and what's not becomes super thin, so maybe this needs a new
new ExposedHttpException() / new HttpException(expose: true)
Example
No response
The text was updated successfully, but these errors were encountered: