Skip to content

Commit

Permalink
chore: Fix some 'Message' linting errors on main (#2129)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emyrk committed Jun 7, 2022
1 parent af401e3 commit cc30d42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions coderd/workspacebuilds.go
Expand Up @@ -40,7 +40,7 @@ func (api *API) workspaceBuild(rw http.ResponseWriter, r *http.Request) {
owner, err := api.Database.GetUserByID(r.Context(), workspace.OwnerID)
if err != nil {
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{
Message: "Internal error fetching user",
Message: "Internal error fetching user.",
Detail: err.Error(),
})
return
Expand Down Expand Up @@ -131,7 +131,7 @@ func (api *API) workspaceBuilds(rw http.ResponseWriter, r *http.Request) {
owner, err := api.Database.GetUserByID(r.Context(), workspace.OwnerID)
if err != nil {
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{
Message: "Internal error fetching user",
Message: "Internal error fetching user.",
Detail: err.Error(),
})
return
Expand Down Expand Up @@ -188,7 +188,7 @@ func (api *API) workspaceBuildByName(rw http.ResponseWriter, r *http.Request) {
owner, err := api.Database.GetUserByID(r.Context(), workspace.OwnerID)
if err != nil {
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{
Message: "Internal error getting user",
Message: "Internal error getting user.",
Detail: err.Error(),
})
return
Expand Down Expand Up @@ -371,7 +371,7 @@ func (api *API) postWorkspaceBuilds(rw http.ResponseWriter, r *http.Request) {
owner, err := api.Database.GetUserByID(r.Context(), workspace.OwnerID)
if err != nil {
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{
Message: "Internal error getting user",
Message: "Internal error getting user.",
Detail: err.Error(),
})
return
Expand Down

0 comments on commit cc30d42

Please sign in to comment.