@marcel91200 / caddy Mirror · read-only / commits / bfbc459c
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 14, 05:15 UTC

httpcaddyfile: Improve unrecognized directive errors

Matthew Holt committed Aug 18, 2021 at 15:32 UTC bfbc459c0afcb62bd73eb78472406ace1519790c
1 file changed +1 -1
caddyconfig/httpcaddyfile/directives.go
+1 -1
@@ -329,7 +329,7 @@ func parseSegmentAsConfig(h Helper) ([]ConfigValue, error) {
329 dir := seg.Directive()
330 dirFunc, ok := registeredDirectives[dir]
331 if !ok {
332 - return nil, h.Errf("unrecognized directive: %s", dir)
332 + return nil, h.Errf("unrecognized directive: %s - are you sure your Caddyfile structure (nesting and braces) is correct?", dir)
333 }
334
335 subHelper := h