7 lines
327 B
Plaintext
7 lines
327 B
Plaintext
send_errors_to_output = function(err)
|
|
local callstack = debug.traceback('', 3)
|
|
local error_with_callstack = cleaned_up_frame(tostring(err))..'\n'..cleaned_up_callstack(callstack)
|
|
Text.insert_text(Current_pane.output_editor_state, error_with_callstack)
|
|
Text.redraw_all(Current_pane.output_editor_state)
|
|
clear_handlers()
|
|
end |