mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: include error detail for ui error display (#14837)
Not including an error detail asks the user to check the dev console. Which is unhelpful in this expected situation
This commit is contained in:
@@ -211,6 +211,7 @@ func (api *API) putMemberRoles(rw http.ResponseWriter, r *http.Request) {
|
||||
if apiKey.UserID == member.OrganizationMember.UserID {
|
||||
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
|
||||
Message: "You cannot change your own organization roles.",
|
||||
Detail: "Another user with the appropriate permissions must change your roles.",
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user