aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nomsu.lua2
-rwxr-xr-xnomsu.moon2
2 files changed, 2 insertions, 2 deletions
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
diff --git a/nomsu.moon b/nomsu.moon
index 07f1384..dfe3c7b 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -677,7 +677,7 @@ class NomsuCompiler
for tok in *tree.value
if tok.type == "Word" then continue
lua = @tree_to_lua(tok)
- assert(lua.expr, "Cannot use #{tok.src} as an argument, since it's not an expression.")
+ assert(lua.expr, "Cannot use #{tok.src} as an argument, since it's not an expression, it produces: #{repr lua}")
insert args, lua.expr
if metadata and metadata.arg_orders