- Notifications
You must be signed in to change notification settings - Fork927
Closed
Description
What is your suggestion?
Ensure backend errors returned to the UI are human readable. Currently we elevateerr.Error()
a lot, which is not a good UI experience.
httpapi.Write(rw,http.StatusForbidden, httpapi.Response{Message:"Human message here",Internal:err.Error(),})
Why do you want this feature?
So the backend can send appropriate errors over to the frontend.
This was a consequence of 2 cases (suspended user login and ...?...) where the backend error had more details than the FE.
Are there any workarounds to get this functionality today?
No
Are you interested in submitting a PR for this?
Yes