Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Shushlin <v.shushlin@gmail.com>2022-01-20 12:31:20 +0300
committerVladimir Shushlin <v.shushlin@gmail.com>2022-01-20 12:31:20 +0300
commit61cde0914d4d548c2d1044ee2b44d47b9126d309 (patch)
treef4241b6080a622f8fb9050803d813ae6863b9391
parentc3c641c7b03c54fcc4c66e841c723cc08887a683 (diff)
fix: fix error message for disabled placeholders
-rw-r--r--internal/redirects/redirects.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/redirects/redirects.go b/internal/redirects/redirects.go
index 1de02b61..11a85d66 100644
--- a/internal/redirects/redirects.go
+++ b/internal/redirects/redirects.go
@@ -46,8 +46,8 @@ var (
errFailedToParseURL = errors.New("unable to parse URL")
errNoDomainLevelRedirects = errors.New("no domain-level redirects to outside sites")
errNoStartingForwardSlashInURLPath = errors.New("url path must start with forward slash /")
- errNoSplats = errors.New("splats are not supported")
- errNoPlaceholders = errors.New("placeholders are not supported")
+ errNoSplats = errors.New("splats are not enabled. See https://docs.gitlab.com/ee/user/project/pages/redirects.html#feature-flag-for-rewrites")
+ errNoPlaceholders = errors.New("placeholders are not enabled. See https://docs.gitlab.com/ee/user/project/pages/redirects.html#feature-flag-for-rewrites")
errNoParams = errors.New("params not supported")
errUnsupportedStatus = errors.New("status not supported")
errNoForce = errors.New("force! not supported")