love.errhand
The error handler, used to display error messages. Function Synopsis love.errhand( msg ) Arguments string msg The error message.
Returns Nothing. Examples Available since LÖVE 0.10.0 This variant is not supported in earlier versions. The default function used if you don't supply your own. local function error_printer(msg, layer)
print((debug.traceback("Error: " .. tostring(msg), 1+(layer or 1)):gsub("\n[^\n]+$", "")))
end
function love.errhand(msg)
msg = tostring(msg)