1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00

Hide internal nodes from stack trace

This commit is contained in:
Étienne Fildadut 2024-01-02 15:06:24 +01:00
parent 5ff178b54c
commit 68a109391f
30 changed files with 120 additions and 26 deletions

View file

@ -47,8 +47,6 @@ local function run_loop(run_state, out)
elseif e == "return" then
table.insert(out, data:format(run_state))
run_state:merge()
elseif e == "error" then
table.insert(out, (tostring(data):gsub("\n%s*↳[^\n]*", ""))) -- traceback change every day and a half due to AST changes. TODO: only keep ast layers relevant for the user
else
table.insert(out, tostring(data))
end