diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-12-15 07:37:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 07:37:49 -0500 |
commit | 0fc97a1483961e0bc617ca67a348dcb2cbeb6bc0 (patch) | |
tree | f18593c33d9da74cc49525ab7badab5f55836ef8 /builtin/init.lua | |
parent | 1f3b5e553bb581deddf468d62954ff238ebb1ac8 (diff) | |
download | minetest-0fc97a1483961e0bc617ca67a348dcb2cbeb6bc0.tar.xz |
Use a Lua error handler that calls tostring (#11913)
Diffstat (limited to 'builtin/init.lua')
-rw-r--r-- | builtin/init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/init.lua b/builtin/init.lua index 96e7a937c..e03c2c6de 100644 --- a/builtin/init.lua +++ b/builtin/init.lua @@ -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("#", ...), {...} |