From 21c3d818ed31574331bda762571cf0361d4cc879 Mon Sep 17 00:00:00 2001 From: Haleth Date: Sun, 28 Aug 2016 01:02:45 +0200 Subject: [PATCH] Fix error text showing error code instead of message --- FreeUI/scripts/errors.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)