diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2023-05-13 08:04:42 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2023-05-13 08:04:42 -0600 |
commit | e96aafe1ca04e30fc10992a77ae08d3a3f3c5f05 (patch) | |
tree | 74764f6cc6ed960d229f6f3409e2900eda9217e2 | |
parent | a02ecb0f88cb1c290c0cf940431aff8a6e1891ed (diff) |
Slightly more helpful error message
-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 aec3d79..90c90ee 100644 --- a/caddyconfig/httpcaddyfile/httptype.go +++ b/caddyconfig/httpcaddyfile/httptype.go @@ -983,7 +983,7 @@ func buildSubroute(routes []ConfigValue, groupCounter counter, needsSorting bool if needsSorting { for _, val := range routes { if !directiveIsOrdered(val.directive) { - return nil, fmt.Errorf("directive '%s' is not an ordered HTTP handler, 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 - try placing within a route block or using the order global option", val.directive) } } |