mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix: organization 404 write 1 http status (#13629)
This commit is contained in:
@ -78,10 +78,6 @@ func ExtractOrganizationParam(db database.Store) func(http.Handler) http.Handler
|
|||||||
}
|
}
|
||||||
if httpapi.Is404Error(dbErr) {
|
if httpapi.Is404Error(dbErr) {
|
||||||
httpapi.ResourceNotFound(rw)
|
httpapi.ResourceNotFound(rw)
|
||||||
httpapi.Write(ctx, rw, http.StatusNotFound, codersdk.Response{
|
|
||||||
Message: fmt.Sprintf("Organization %q not found.", arg),
|
|
||||||
Detail: "Provide either the organization id or name.",
|
|
||||||
})
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if dbErr != nil {
|
if dbErr != nil {
|
||||||
|
Reference in New Issue
Block a user