diff --git a/app.lua b/app.lua index 41c7d51..20f1fd3 100644 --- a/app.lua +++ b/app.lua @@ -463,7 +463,7 @@ function record_error_with_heuristic_location(test_name, err) end -- Test_errors will be a table by test name -function record_error_with_stack_trace(test_name, err) +function record_error_by_test(test_name, err) local err_without_line_number = err:gsub('^[^:]*:[^:]*: ', '') Test_errors[test_name] = debug.traceback(err_without_line_number) end diff --git a/live.lua b/live.lua index 4907fb6..156a13e 100644 --- a/live.lua +++ b/live.lua @@ -281,7 +281,7 @@ function live.run(buf) -- run all tests local globals = live.shallow_copy_all_globals() Test_errors = {} - App.run_tests(record_error_with_stack_trace) + App.run_tests(record_error_by_test) live.send_to_driver(json.encode(Test_errors)) live.restore_all_globals(globals) end