Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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)