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:
parent
5ff178b54c
commit
68a109391f
30 changed files with 120 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue