mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 13:10:00 +00:00
core: add global variable to enable debug mode
This commit is contained in:
@@ -313,6 +313,7 @@ end
|
|||||||
print = message
|
print = message
|
||||||
|
|
||||||
error = function(msg)
|
error = function(msg)
|
||||||
|
if PF_DEBUG_MODE then message(debugstack()) end
|
||||||
DEFAULT_CHAT_FRAME:AddMessage("|cffcc3333ERROR: |cffff5555".. (msg or "nil" ))
|
DEFAULT_CHAT_FRAME:AddMessage("|cffcc3333ERROR: |cffff5555".. (msg or "nil" ))
|
||||||
end
|
end
|
||||||
seterrorhandler(error)
|
seterrorhandler(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user