diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2021-08-18 15:32:35 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2021-08-25 10:30:39 -0600 |
commit | bfbc459c0afcb62bd73eb78472406ace1519790c (patch) | |
tree | abda98b88cf8d3d5b177f40b887734380a381801 | |
parent | f70a7578faa1ab9169bc05a121911bf33d7d3da3 (diff) |
httpcaddyfile: Improve unrecognized directive errors
-rw-r--r-- | caddyconfig/httpcaddyfile/directives.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyconfig/httpcaddyfile/directives.go b/caddyconfig/httpcaddyfile/directives.go index 75fd473..800e892 100644 --- a/caddyconfig/httpcaddyfile/directives.go +++ b/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 |