# HG changeset patch # User contrebasse # Date 1304114861 -7200 # Node ID 00c2282f073ac5a3cc0f9e606ae5334c7ef7dae9 # Parent d74613eb5f7227e5c0bbc05b37184a0154e4fbfb More fancy errors ! diff -r d74613eb5f72 -r 00c2282f073a ReagentMaker.lua --- a/ReagentMaker.lua Sat Apr 30 00:02:55 2011 +0200 +++ b/ReagentMaker.lua Sat Apr 30 00:07:41 2011 +0200 @@ -205,20 +205,16 @@ btn.textureHighlight:Show() -- Tooltips - local link - if A.data[reagentID].spellLink then - link = A.data[reagentID].spellLink - else - A.DEBUG("Recipe link not found for "..reagentID) - return - end - + local link = A.data[reagentID].spellLink if link then A.tooltipRecipe:SetOwner(btn) A.tooltipRecipe:SetHyperlink(link) A.tooltipRecipe:Show() A.tooltipRecipe:ClearAllPoints() A.tooltipRecipe:SetPoint("BOTTOMLEFT",GameTooltip,"BOTTOMRIGHT") + else + -- Shouldn't happend, but just in case... + A.Error("Recipe link not found for "..reagentID) end end diff -r d74613eb5f72 -r 00c2282f073a utils.lua --- a/utils.lua Sat Apr 30 00:02:55 2011 +0200 +++ b/utils.lua Sat Apr 30 00:07:41 2011 +0200 @@ -67,7 +67,7 @@ end -- if end -- if end -- for - A.DEBUG("Tradeskill not found for "..itemID) + A.Error("Tradeskill not found for "..itemID..", is the recipe hidden ?") end -- function end -- do