Skip to content

Commit

Permalink
Fix error text showing error code instead of message
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleth committed Aug 27, 2016
1 parent a7be1c1 commit 21c3d81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FreeUI/scripts/errors.lua
Expand Up @@ -35,14 +35,14 @@ local state = 0
firstErrorFrame:SetScript("OnHide", function() state = 0 end)
local Error = CreateFrame("Frame")
Error:RegisterEvent("UI_ERROR_MESSAGE")
Error:SetScript("OnEvent", function(_, _, error)
Error:SetScript("OnEvent", function(_, _, code, msg)
if state == 0 then
firstErrorFrame.text:SetText(error)
firstErrorFrame.text:SetText(msg)
FadingFrame_Show(firstErrorFrame)
state = 1
else
secondErrorFrame.text:SetText(error)
secondErrorFrame.text:SetText(msg)
FadingFrame_Show(secondErrorFrame)
state = 0
end
end)
end)

0 comments on commit 21c3d81

Please sign in to comment.