Slightly more helpful parse error message

This commit is contained in:
Matthew Holt 2015-04-23 14:39:21 -06:00
parent 95dce5cdfc
commit e6c5482b7c

View File

@ -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.