-
-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
Reading this thread reminded me of an occasion when I accidentally left a top level throw inside a get handler in one of my projects. I would prefer if this wasn't allowed, so I am forced to make a conscious decision whether it's a 400 or a 500 error (or a rare case when it's something else) instead of automatically converting the error to a 500(?) response for me.
The actual implementation would probably be #if TRAIT around typalias any Error/Never and then using typed throws with that type.
Hopefully the final release of 6.3 keeps the fix, so non-default traits become easily usable for everyone: #769 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels