diff --git a/FreeUI/scripts/errors.lua b/FreeUI/scripts/errors.lua index 3bf5b93e..75dcd73b 100755 --- a/FreeUI/scripts/errors.lua +++ b/FreeUI/scripts/errors.lua @@ -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) \ No newline at end of file +end)