mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Use a Lua error handler that calls tostring (#11913)
This commit is contained in:
parent
1f3b5e553b
commit
0fc97a1483
5 changed files with 45 additions and 9 deletions
|
@ -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("#", ...), {...}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue