Quantcast

Added support for tekDebug

Xruptor [07-24-16 - 20:53]
Added support for tekDebug
Filename
xanErrorDevourer.lua
xanErrorDevourer.toc
diff --git a/xanErrorDevourer.lua b/xanErrorDevourer.lua
index 225a459..9817c2a 100644
--- a/xanErrorDevourer.lua
+++ b/xanErrorDevourer.lua
@@ -12,6 +12,11 @@ local prevClickedBar
 local xED_Frame = CreateFrame("frame","xanErrorDevourer",UIParent)
 xED_Frame:SetScript("OnEvent", function(self, event, ...) if self[event] then return self[event](self, event, ...) end end)

+local debugf = tekDebug and tekDebug:GetFrame("xanErrorDevourer")
+local function Debug(...)
+    if debugf then debugf:AddMessage(string.join(", ", tostringall(...))) end
+end
+
 --[[------------------------
 	ENABLE
 --------------------------]]
diff --git a/xanErrorDevourer.toc b/xanErrorDevourer.toc
index a7d0fb7..725741d 100644
--- a/xanErrorDevourer.toc
+++ b/xanErrorDevourer.toc
@@ -3,6 +3,7 @@
 ## Notes: This addon devours errors. Nom-Nom-Nom Errors!
 ## Author: Xruptor
 ## Version: 1.9
+## OptionalDeps: tekDebug
 ## SavedVariables: xErrD_DB, xErrD_CDB

 errorList.lua