fix: handle create workspace errors (#3346)

This commit is contained in:
Abhineet Jain
2022-08-02 13:19:00 -04:00
committed by GitHub
parent 83c63d4a63
commit 8bcf23e60a
5 changed files with 143 additions and 13 deletions

View File

@ -329,7 +329,7 @@ func (api *API) postWorkspacesByOrganization(rw http.ResponseWriter, r *http.Req
Message: fmt.Sprintf("Workspace %q already exists in the %q template.", createWorkspace.Name, template.Name),
Validations: []codersdk.ValidationError{{
Field: "name",
Detail: "this value is already in use and should be unique",
Detail: "This value is already in use and should be unique.",
}},
})
return