From 770aba26fddb728107d278e906a5c1669671db0c Mon Sep 17 00:00:00 2001 From: Vishal Tak Date: Fri, 10 Jun 2022 05:25:04 +0000 Subject: Apply review suggestion --- internal/redirects/redirects.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/redirects/redirects.go') 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]+`) ) -- cgit v1.2.3