summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2021-08-18 15:32:35 -0600
committerMatthew Holt <[email protected]>2021-08-25 10:30:39 -0600
commitbfbc459c0afcb62bd73eb78472406ace1519790c (patch)
treeabda98b88cf8d3d5b177f40b887734380a381801
parentf70a7578faa1ab9169bc05a121911bf33d7d3da3 (diff)
downloadcaddy-bfbc459c0afcb62bd73eb78472406ace1519790c.tar.gz
caddy-bfbc459c0afcb62bd73eb78472406ace1519790c.zip
httpcaddyfile: Improve unrecognized directive errors
-rw-r--r--caddyconfig/httpcaddyfile/directives.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyconfig/httpcaddyfile/directives.go b/caddyconfig/httpcaddyfile/directives.go
index 75fd473dc..800e8929e 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