Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit52d2bc9

Browse files
authored
chore: Make better error message if missing license (#7440)
* chore: Make better error message if missing license* Change word to proxies
1 parent07608fc commit52d2bc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎enterprise/coderd/templates.go

Lines changed: 3 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp