From a28c5d2bfc8ab1e6841453e30cc3840fd4be1d97 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Thu, 26 Sep 2024 11:30:23 -0500 Subject: [PATCH] chore: include error detail for ui error display Not including an error detail asks the user to check the dev console. Which is unhelpful in this expected situation --- coderd/members.go | 1 + 1 file changed, 1 insertion(+) diff --git a/coderd/members.go b/coderd/members.go index 45bf9aa36dc2b..7f2acd982631b 100644 --- a/coderd/members.go +++ b/coderd/members.go @@ -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 }