Skip to content

Commit

Permalink
More detailed error message when trying to call a literal value.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Jul 11, 2020
1 parent aba0777 commit 2b839f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fennel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ local compiler = (function()
nval = 1
})[1]
assertCompile(fcallee.type ~= 'literal',
'cannot call literal value', ast)
'cannot call literal value ' .. tostring(ast[1]), ast)
fcallee = tostring(fcallee)
for i = 2, len do
local subexprs = compile1(ast[i], scope, parent, {
Expand Down

0 comments on commit 2b839f8

Please sign in to comment.