The default error handler is assigned to love.errorhandler.

This commit is contained in:
Sasha Szpakowski
2025-04-07 20:59:47 -03:00
parent ae2e68f414
commit dfdbe79138
+4 -1
View File
@@ -215,7 +215,7 @@ local function error_printer(msg, layer)
print((debug.traceback("Error: " .. tostring(msg), 1+(layer or 1)):gsub("\n[^\n]+$", "")))
end
function love.errhand(msg)
function love.errorhandler(msg)
msg = tostring(msg)
error_printer(msg, 2)
@@ -340,5 +340,8 @@ function love.errhand(msg)
end
-- Legacy code support.
love.errhand = love.errorhandler
-- DO NOT REMOVE THE NEXT LINE. It is used to load this file as a C++ string.
--)luastring"--"