Browse Source

httpcaddyfile: Improve unrecognized directive errors

master
Matthew Holt 3 years ago
parent
commit
bfbc459c0a
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 2
      caddyconfig/httpcaddyfile/directives.go

2
caddyconfig/httpcaddyfile/directives.go

@ -329,7 +329,7 @@ func parseSegmentAsConfig(h Helper) ([]ConfigValue, error) {
dir := seg.Directive()
dirFunc, ok := registeredDirectives[dir]
if !ok {
return nil, h.Errf("unrecognized directive: %s", dir)
return nil, h.Errf("unrecognized directive: %s - are you sure your Caddyfile structure (nesting and braces) is correct?", dir)
}
subHelper := h

Loading…
Cancel
Save