Skip to content

Commit

Permalink
httpcaddyfile: Improve unrecognized directive errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Aug 25, 2021
1 parent f70a757 commit bfbc459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caddyconfig/httpcaddyfile/directives.go
Expand Up @@ -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
Expand Down

0 comments on commit bfbc459

Please sign in to comment.