Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

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)
Advertisement