Rename love.errhand to love.errorhandler (see issue #573).

love.errhand will still be called if love.errorhandler doesn't exist, and love defines love.errhand by default rather than love.errorhandler, to prevent hard-to-diagnose problems with existing code that defines love.errhand.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-08-05 16:56:39 -03:00
parent 254e50dbfe
commit 9654376bdd
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -716,7 +716,7 @@ function love.errhand(msg)
end
local function deferErrhand(...)
local handler = love.errhand or error_printer
local handler = love.errorhandler or love.errhand or error_printer
return handler(...)
end