UnitBuff
Hello,
For the first attempt of making a simple addon for wow I tried to make a wintergrasp addon. However I seem to fail to understand the LUA error reporting.
This is the error I get in-game:
Message: Interface\AddOns\wg\wg.lua:15: Usage: UnitBuff("unit", [index] or ["name", "rank"][, "filter"])
Time: 06/01/10 20:46:43
Count: 1
Stack: [C]: in function `UnitBuff'
Interface\AddOns\wg\wg.lua:15: in function `value'
Interface\FrameXML\ChatFrame.lua:3577: in function <Interface\FrameXML\ChatFrame.lua:3509>
[C]: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3222: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:3246: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>
Locals: (*temporary) = "player"
(*temporary) = nil
Now my question is how to read those errors and do the debugging.
Thanks in advance
|