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
The server action updateTranslation returns an explicit object for some errors but throws a MessageNotFound if the request is for an unrecognized message.
I don't know exactly what happens with thrown errors from server actions but if we chose explicit error-representing objects for the other cases, I suspect our client will not handle this thrown error very well.
Understand and describe how thrown errors are handled in server actions.
Review how that affects our use of updateTranslation
Potentially update our error handling in updateTranslation
Estimated size (S, M, L)
I think this issue is Small because the problem is local and contained.
Possible implementations
One possibility is to return an explicit error-representing object instead. Our client-side code probably handles those.
Open questions
In what cases can this error state actually happen?
What is the ideal error handling for those cases?
The text was updated successfully, but these errors were encountered:
Description
The server action
updateTranslation
returns an explicit object for some errors but throws aMessageNotFound
if the request is for an unrecognized message.I don't know exactly what happens with thrown errors from server actions but if we chose explicit error-representing objects for the other cases, I suspect our client will not handle this thrown error very well.
updateTranslation
updateTranslation
Estimated size (S, M, L)
I think this issue is Small because the problem is local and contained.
Possible implementations
One possibility is to return an explicit error-representing object instead. Our client-side code probably handles those.
Open questions
The text was updated successfully, but these errors were encountered: