improve DRData nil-checking error message

This commit is contained in:
Alex Folland
2021-08-02 11:31:56 -07:00
parent 7ca2df2dc4
commit 3ed26e6d9f

View File

@ -650,6 +650,7 @@ function Diminishings:GetDRIcons(category)
icons[icon] = format("|T%s:20|t %s", tostring(icon or "nil"), tostring(select(1, GetSpellInfo(k)) or "nil")) icons[icon] = format("|T%s:20|t %s", tostring(icon or "nil"), tostring(select(1, GetSpellInfo(k)) or "nil"))
else else
print("Gladdy Diminishings.lua: nil icon for key: "..tostring(k or "nil").."; value: "..tostring(v or "nil")) print("Gladdy Diminishings.lua: nil icon for key: "..tostring(k or "nil").."; value: "..tostring(v or "nil"))
print("Gladdy: Do you have a conflicting and incorrect copy of DRData?")
end end
end end
end end