From d888b1134a95493db80a271052e38bdd3916f4ef Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 19 Jan 2018 15:11:51 -0800 Subject: Added more info to error message. --- nomsu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index 911ac29..dfb9025 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -1007,7 +1007,7 @@ do break end local lua = self:tree_to_lua(tok) - assert(lua.expr, "Cannot use " .. tostring(tok.src) .. " as an argument, since it's not an expression.") + assert(lua.expr, "Cannot use " .. tostring(tok.src) .. " as an argument, since it's not an expression, it produces: " .. tostring(repr(lua))) insert(args, lua.expr) _continue_0 = true until true -- cgit v1.2.3