From 6cd1219289e403c12dfeb834ec31ef3c186086f4 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Wed, 25 Sep 2024 13:41:21 -0500 Subject: [PATCH] chore: reword license backend error to only mention premium (#14799) Phrasing for "enterprise" removed. --- enterprise/coderd/templates.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/enterprise/coderd/templates.go b/enterprise/coderd/templates.go index d795e57c61..114f029c9d 100644 --- a/enterprise/coderd/templates.go +++ b/enterprise/coderd/templates.go @@ -354,12 +354,9 @@ func (api *API) RequireFeatureMW(feat codersdk.FeatureName) func(http.Handler) h return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { // Entitlement must be enabled. if !api.Entitlements.Enabled(feat) { - licenseType := "a Premium" - if feat.Enterprise() { - licenseType = "an Enterprise" - } + // All feature warnings should be "Premium", not "Enterprise". httpapi.Write(r.Context(), rw, http.StatusForbidden, codersdk.Response{ - Message: fmt.Sprintf("%s is %s feature. Contact sales!", feat.Humanize(), licenseType), + Message: fmt.Sprintf("%s is a Premium feature. Contact sales!", feat.Humanize()), }) return }