@marcel91200 / caddy Mirror · read-only / commits / e96aafe1
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 03:00 UTC

Slightly more helpful error message

Matthew Holt committed May 13, 2023 at 08:04 UTC e96aafe1ca04e30fc10992a77ae08d3a3f3c5f05
1 file changed +1 -1
caddyconfig/httpcaddyfile/httptype.go
+1 -1
@@ -983,7 +983,7 @@ func buildSubroute(routes []ConfigValue, groupCounter counter, needsSorting bool
983 if needsSorting {
984 for _, val := range routes {
985 if !directiveIsOrdered(val.directive) {
986 - return nil, fmt.Errorf("directive '%s' is not an ordered HTTP handler, so it cannot be used here", val.directive)
986 + 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)
987 }
988 }
989