Skip to content

Commit dbbd2ba

Browse files
committed
comments
1 parent dc884eb commit dbbd2ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

coderd/workspaceapps/provider.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ func ResolveRequest(rw http.ResponseWriter, r *http.Request, opts ResolveRequest
4141
appReq := opts.AppRequest.Normalize()
4242
err := appReq.Validate()
4343
if err != nil {
44+
// This is a 500 since it's a coder server or proxy that's making this
45+
// request struct based on details from the request. The values should
46+
// already be validated before they are put into the struct.
4447
WriteWorkspaceApp500(opts.Logger, opts.DashboardURL, rw, r, &appReq, err, "invalid app request")
4548
return nil, false
4649
}

0 commit comments

Comments
 (0)