Prints traceback as ERROR to help debugging tests

This commit is contained in:
Simone Mainardi 2021-08-12 09:39:31 +02:00
parent ef9597140b
commit 2d3c44e6b4

View file

@ -808,7 +808,8 @@ local function load_metadata()
if not status then
traceError(TRACE_ERROR, TRACE_CONSOLE, string.format("Could not load plugins metadata file '%s'", PLUGIN_RELATIVE_PATHS.metadata))
tprint(debug.traceback())
local tb = debug.traceback()
traceError(TRACE_ERROR, TRACE_CONSOLE, string.format("%s", tb))
end
end
end