Commit 370f9e44 authored by Simao Gomes Viana's avatar Simao Gomes Viana 🛠
Browse files

fix error messages

parent 84cab7b6
......@@ -209,7 +209,7 @@ func (m Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddy
// UnmarshalCaddyfile implements caddyfile.Unmarshaler.
func (m *Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
if !d.Next() {
return d.Err("expected token following filter")
return d.Err("expected token following injection")
}
for d.NextBlock(0) {
key := d.Val()
......@@ -226,7 +226,7 @@ func (m *Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
case "before":
m.Before = value
default:
return d.Err(fmt.Sprintf("invalid key for filter directive: %s", key))
return d.Err(fmt.Sprintf("invalid key for injection directive: %s", key))
}
}
return nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment