WeakAuras

WeakAuras

206M Downloads

Improve OPTIONS event error handling

mrbuds opened this issue · 1 comments

commented

While testing on 8.2.5 PTR with a old SV i get this error from an outdated aura, and it doesn't tell from which aura the error is coming from

2x WeakAuras\AuraEnvironment.lua:47: Usage: local className, classFilename, classID = UnitClass(unit)
WeakAuras\AuraEnvironment.lua:47: in function <WeakAuras\AuraEnvironment.lua:46>
(tail call): ?
[C]: in function `xpcall'
WeakAuras\WeakAuras-@[email protected]:5616: in function `RunCustomTextFunc'
WeakAuras\SubRegionTypes\SubText.lua:221: in function `Update'
WeakAuras\WeakAuras-@[email protected]:5392: in function <WeakAuras\WeakAuras.lua:5387>
WeakAuras\WeakAuras-@[email protected]:5477: in function <WeakAuras\WeakAuras.lua:5444>
WeakAuras\WeakAuras-@[email protected]:5561: in function `UpdatedTriggerState'
WeakAuras\WeakAuras-@[email protected]:5328: in function `UpdateFakeStatesFor'
WeakAuras\WeakAuras-@[email protected]:5301: in function `FakeStatesFor'
...eGUI-Widgets\AceGUIWidget-WeakAurasDisplayButton.lua:1788: in function `PriorityShow'
...eGUI-Widgets\AceGUIWidget-WeakAurasDisplayButton.lua:1660: in function `PriorityShow'
WeakAurasOptions\WeakAurasOptions-@[email protected]:1615: in function <WeakAurasOptions\WeakAurasOptions.lua:1580>

I think it was coming from this aura

!vNXwZPnp2)lzMDMUZ2MX2Cnp0hacPjziq2ysZUtBniBla9fJfFw2Kq6u(T)Dosw2YCjjDFyNDhAaz5ZDDUQ6z7n2ZLaFL65k8CpNU2ZDPNBi(p8njbdOXZtx4nSwtlpxFEsinPlj4XWe(kp3UrSxEHKeUD6yopkLbBrYsxWtgTkLXJfkcVz0SzcAQ3Wpz3aiY8ew44nROEU3D1xUC85JEyOMY94r8eaPH2EdT8g6i)UM8764MOuUIeqXx5sc08WvKsssvmBglMjwOwdlv7cRttyZNttekQpUyd5sP0qYsiEUzX010yeb2skAhGDr(45A75M)QlPKiWM4kY8L7CBcDg7zpx3B7pyakI0OORcZ1E)Sz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6A0UhXelnrRzdhRsvSXEyTGhTboy44fmlirRvDQxsGMonn0XdzI8jjjmAIjo1BxVwboT2JNHS1G3oW7nlRWQ6NzvAAAUhAInl95WKJ8zOyVIAQMwTQD2zf4w7aIjucIkstWrpHjIsPbQrssHLMgmBR2oTTEn78ckjs6pKkheBxcCwBlR2v0IDeerufNi76wnm8b3)eIicGwMrX3aTw1lLXMNUpsGIg)NzSiwQPtuTATpZ(vTsPjuAfPRrnBRx5mjHUMTgSPgO0WPDZQ6Zo8ynzjmuhlaCzx6Jf8o0Tmifgc0IUzWtZwN1Ou8RqzdLSXBdJJvDRwN9MG1WUIx1rGQPJTt93ekBBiq6TjMD7go1FBfOrthhNJb1VkUEpzXMx4qQ58A360SyJxNZe4isybaSomxEBBqQt3IRcxFpXqMZEf5NNcTdb7)u(vdBT)vaF07k2K79JvmVB(vgV5pQ19f6)mO5CzrgCQPIIJ3cLbXEZOQMgabOCKj)DU4y1GrQPinURruUwNpuy(10cphLPNXtv1QKaQ3HnnLaPAW(MuiLw29u5TtJVPR()Qa5BxJ996Gu27Vo

with

function()
    if aura_env.state then
       return WA_ClassColorName(aura_env.state.name)
    end
end
commented

I doubt that’s actually due to the OPTIONS fake event. Rather, it looks more like the custom text function was not loaded correctly.