Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 52d2bc9

Browse files
authoredMay 5, 2023
chore: Make better error message if missing license (#7440)
* chore: Make better error message if missing license * Change word to proxies
1 parent 07608fc commit 52d2bc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎enterprise/coderd/templates.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ func (api *API) moonsEnabledMW(next http.Handler) http.Handler {
293293
proxy := api.entitlements.Features[codersdk.FeatureWorkspaceProxy].Enabled
294294
api.entitlementsMu.RUnlock()
295295
if !proxy {
296-
httpapi.RouteNotFound(rw)
296+
httpapi.Write(r.Context(), rw, http.StatusForbidden, codersdk.Response{
297+
Message: "External workspace proxies is an Enterprise feature. Contact sales!",
298+
})
297299
return
298300
}
299301

0 commit comments

Comments
 (0)