From e6c5482b7c2399d33383481d2636d14bc8a93839 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 23 Apr 2015 14:39:21 -0600 Subject: [PATCH] Slightly more helpful parse error message --- config/dispenser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/dispenser.go b/config/dispenser.go index fad07c8e..13cd8542 100644 --- a/config/dispenser.go +++ b/config/dispenser.go @@ -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.