fix: use descriptive error for unknown block options in health and log plugins (#8128)

This commit is contained in:
Immanuel Tikhonov
2026-05-28 03:29:24 +04:00
committed by GitHub
parent afdf121a5a
commit 0bcb17df06
4 changed files with 29 additions and 12 deletions

View File

@@ -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())
}
}
}