fix error formatting (#3639)

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver 2020-01-29 11:52:35 -05:00 committed by GitHub
parent da7f65b3a8
commit 488464b686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ func parse(c *caddy.Controller) (*Transfer, error) {
}
}
if len(x.to) == 0 {
return nil, plugin.Error("transfer", c.Errf("'to' is required", c.Val()))
return nil, plugin.Error("transfer", c.Err("'to' is required"))
}
t.xfrs = append(t.xfrs, x)
}