wowpedia
Main Menu


Returns the currently set error handler.

handler = geterrorhandler()

Returns

handler
function - The current error handler. Receives a message as an argument, normally a string that is the second return value from pcall().

Example

local myError = "Something went horribly wrong!"
geterrorhandler()(myError)