Originally Posted by Phanx
Addons can't shut down the Lua error system
|
Actually, it can be done in either of 2 ways. The first is setting the
scriptErrors CVar to 0, this is the effect of unchecking "Display Lua Errors" in the interface options. This may only work on the Default UI as the currently registered error handler is still run. Another option that is guaranteed to work is to pass a dummy function to
seterrorhandler() so Lua ends up running a function that does nothing when an error happens.
In the specific case Bluspacecow was posting, custom error addons do their thing by registering their own error handler via
seterrorhandler(). From that point, it's up to the addon to either display the error, ignore it, or save it for later viewing.