mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-24 07:08:43 +08:00
Slightly more helpful parse error message
This commit is contained in:
parent
95dce5cdfc
commit
e6c5482b7c
|
@ -149,7 +149,7 @@ func (d *dispenser) ArgErr() error {
|
|||
if d.Val() == "{" {
|
||||
return d.Err("Unexpected token '{', expecting argument")
|
||||
}
|
||||
return d.Err("Unexpected line ending after '" + d.Val() + "' (missing arguments?)")
|
||||
return d.Err("Wrong argument count or unexpected line ending after '" + d.Val() + "'")
|
||||
}
|
||||
|
||||
// Err generates a custom parse error with a message of msg.
|
||||
|
|
Loading…
Reference in New Issue
Block a user