Commit e6c5482b authored by Matthew Holt's avatar Matthew Holt

Slightly more helpful parse error message

parent 95dce5cd
...@@ -149,7 +149,7 @@ func (d *dispenser) ArgErr() error { ...@@ -149,7 +149,7 @@ func (d *dispenser) ArgErr() error {
if d.Val() == "{" { if d.Val() == "{" {
return d.Err("Unexpected token '{', expecting argument") 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. // Err generates a custom parse error with a message of msg.
......
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