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:
committed by
GitHub
parent
1f3b5e553b
commit
0fc97a1483
@@ -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("#", ...), {...}
|
||||
|
Reference in New Issue
Block a user