diff options
author | Vishal Tak <vtak@gitlab.com> | 2022-06-10 08:25:04 +0300 |
---|---|---|
committer | Nejc Habjan <nejc.habjan@siemens.com> | 2022-06-27 11:36:53 +0300 |
commit | 770aba26fddb728107d278e906a5c1669671db0c (patch) | |
tree | 5c2a27de178b958eaac936a641545a66742fed4e /internal/redirects | |
parent | 9d39341fe0a5dad0080bd3d472c1b8fb757ceeb6 (diff) |
Apply review suggestion
Diffstat (limited to 'internal/redirects')
-rw-r--r-- | internal/redirects/redirects.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/redirects/redirects.go b/internal/redirects/redirects.go index 5d901505..f92a5806 100644 --- a/internal/redirects/redirects.go +++ b/internal/redirects/redirects.go @@ -43,7 +43,7 @@ var ( errNoParams = errors.New("params not supported") errUnsupportedStatus = errors.New("status not supported") errNoForce = errors.New("force! not supported") - errTooManyPathSegments = fmt.Errorf("url path cannot contain more than %d forward slashes", cfg.MaxConfigSize) + errTooManyPathSegments = errors.New("url path contains more forward slashes than the configured maximum") regexpPlaceholder = regexp.MustCompile(`(?i)/:[a-z]+`) ) |