Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: we should return after writing the error
  • Loading branch information
DanielleMaywood committed Aug 29, 2025
commit bb928f814d017ce6b020f62e182e7a531f4099db
1 change: 1 addition & 0 deletions coderd/aitasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ func (api *API) tasksCreate(rw http.ResponseWriter, r *http.Request) {
w, err := createWorkspace(ctx, aReq, apiKey.UserID, api, owner, createReq, r)
if err != nil {
httperror.WriteResponseError(ctx, rw, err)
return
}

httpapi.Write(ctx, rw, http.StatusCreated, w)
Expand Down
1 change: 1 addition & 0 deletions coderd/workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ func (api *API) postWorkspacesByOrganization(rw http.ResponseWriter, r *http.Req
w, err := createWorkspace(ctx, aReq, apiKey.UserID, api, owner, req, r)
if err != nil {
httperror.WriteResponseError(ctx, rw, err)
return
}

httpapi.Write(ctx, rw, http.StatusCreated, w)
Expand Down
Loading