Browse Source
httpcaddyfile: Improve unrecognized directive errors
master
Matthew Holt
3 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|