Quantcast

In addon:PrintScanResults(): Make the "Extra item type" output actually show what the "extra" item types are so we can see if we're keeping that bit of code or not.

torhal [09-19-09 - 23:36]
In addon:PrintScanResults(): Make the "Extra item type" output actually show what the "extra" item types are so we can see if we're keeping that bit of code or not.
Filename
ARLDatamine.lua
diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index 34e9fb5..916fc28 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -1796,9 +1796,11 @@ do
 			end

 			local count = 0
+			local types = ""

 			for k, v in ipairs(ORDERED_ITEM_TYPES) do
 				if scan_data[v] then
+					types = types .. (count == 0 and "" or ", ") .. k .. " (" .. v ..")"
 					count = count + 1
 				end
 			end
@@ -1806,7 +1808,7 @@ do
 			if count == 0 then
 				tinsert(output, "Missing: item type flag")
 			elseif count > 1 then
-				tinsert(output, "Extra: item type flag")
+				tinsert(output, "Extra item types in scan: ".. types)
 			end

 		end