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
@@ -58,7 +58,7 @@ func parse(c *caddy.Controller) (string, time.Duration, error) {
|
||||
}
|
||||
dur = l
|
||||
default:
|
||||
return "", 0, c.ArgErr()
|
||||
return "", 0, c.Errf("unknown property '%s'", c.Val())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user