View Single Post
12-18-12, 04:06 AM   #18
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by Phanx View Post
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.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 12-18-12 at 04:22 AM.
  Reply With Quote