We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d38ff03 commit d83e63cCopy full SHA for d83e63c
1 file changed
core/sile.lua
@@ -181,10 +181,10 @@ local function runEvals (evals, arg)
181
for _, snippet in ipairs(evals) do
182
local pId = SILE.traceStack:pushText(snippet)
183
local status, func = pcall(load, snippet)
184
- if status then
+ if status and type(func) == "function" then
185
func()
186
else
187
- SU.error(("Error parsing code provided in --%s snippet: %s"):format(arg, func))
+ SU.error(("Error parsing code provided in --%s snippet: %s"):format(arg, snippet))
188
end
189
SILE.traceStack:pop(pId)
190
0 commit comments