1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Use a Lua error handler that calls tostring (#11913)

This commit is contained in:
Jude Melton-Houghton
2022-12-15 07:37:49 -05:00
committed by GitHub
parent 1f3b5e553b
commit 0fc97a1483
5 changed files with 45 additions and 9 deletions

View File

@@ -6,6 +6,9 @@
--
-- Initialize some very basic things
function core.error_handler(err, level)
return debug.traceback(tostring(err), level)
end
do
local function concat_args(...)
local n, t = select("#", ...), {...}