Changes the error handler to a specified function. The error handler is called by Lua's error() function, which in turn is called whenever a Lua error occurs. WoW's default error handler displays the error message, a stack trace and information about the local variables for the function. This dialog will only be shown if the "Show Lua errors" option is enabled in Interface Options.


See also Debugging and Profiling functions.

Signature:

seterrorhandler(errHandler)

Arguments:

  • errHandler - A function to use as the error handler (function)