diff --git a/service/frontend/wrappers/clusterredirection/policy.go b/service/frontend/wrappers/clusterredirection/policy.go index 6557ad3c4f3..cf6a2974554 100644 --- a/service/frontend/wrappers/clusterredirection/policy.go +++ b/service/frontend/wrappers/clusterredirection/policy.go @@ -195,7 +195,7 @@ func (policy *selectedOrAllAPIsForwardingRedirectionPolicy) WithDomainIDRedirect return err } if domainEntry.IsDeprecatedOrDeleted() { - return types.DomainNotActiveError{ + return &types.DomainNotActiveError{ Message: "domain is deprecated.", DomainName: domainEntry.GetInfo().Name, CurrentCluster: policy.currentClusterName, @@ -212,7 +212,7 @@ func (policy *selectedOrAllAPIsForwardingRedirectionPolicy) WithDomainNameRedire return err } if domainEntry.IsDeprecatedOrDeleted() { - return types.DomainNotActiveError{ + return &types.DomainNotActiveError{ Message: "domain is deprecated or deleted", DomainName: domainName, CurrentCluster: policy.currentClusterName,