diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-13 13:43:21 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-13 13:43:21 -0600 |
commit | 754fe4f7b4dddbfc7a8ee7fee405cee057da858e (patch) | |
tree | 56fd84493e7a076f649c3c5d5fc5474707e72aad /caddyconfig/httpcaddyfile/httptype.go | |
parent | 20d487be573424e7647b5a157754f6e284554e23 (diff) |
httpcaddyfile: Fix sorting of repeated directives
Fixes #5037
Diffstat (limited to 'caddyconfig/httpcaddyfile/httptype.go')
-rw-r--r-- | caddyconfig/httpcaddyfile/httptype.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyconfig/httpcaddyfile/httptype.go b/caddyconfig/httpcaddyfile/httptype.go index 72d98bd..9cf386a 100644 --- a/caddyconfig/httpcaddyfile/httptype.go +++ b/caddyconfig/httpcaddyfile/httptype.go @@ -955,7 +955,7 @@ func appendSubrouteToRouteList(routeList caddyhttp.RouteList, func buildSubroute(routes []ConfigValue, groupCounter counter) (*caddyhttp.Subroute, error) { for _, val := range routes { if !directiveIsOrdered(val.directive) { - return nil, fmt.Errorf("directive '%s' is not ordered, so it cannot be used here", val.directive) + return nil, fmt.Errorf("directive '%s' is not an ordered HTTP handler, so it cannot be used here", val.directive) } } |