mirror of
https://github.com/coredns/coredns.git
synced 2026-06-02 07:10:24 -04:00
fix: use descriptive error for unknown block options in health and log plugins (#8128)
This commit is contained in:
committed by
GitHub
parent
afdf121a5a
commit
0bcb17df06
@@ -86,7 +86,7 @@ func logParse(c *caddy.Controller) ([]Rule, error) {
|
||||
classes[cls] = struct{}{}
|
||||
}
|
||||
default:
|
||||
return nil, c.ArgErr()
|
||||
return nil, c.Errf("unknown property '%s'", c.Val())
|
||||
}
|
||||
}
|
||||
if len(classes) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user