More better error logging
This commit is contained in:
@@ -52,11 +52,18 @@ function(allstates, e, prefix, msg, ...)
|
||||
end
|
||||
|
||||
if not prefix or prefix ~= aura_env.addonprefix then return end
|
||||
local name, threat, note = string.split(aura_env.separator, msg)
|
||||
local name, threat, note = strsplit(aura_env.separator, msg)
|
||||
print("threat", threat)
|
||||
threat = tonumber(threat)
|
||||
if not name then
|
||||
if aura_env.config.debug then
|
||||
print("Could not get name for " .. msg)
|
||||
print(string.format("Could not get name for %s (%s) with deliminer '%s'", msg, name or "nil", aura_env.separator))
|
||||
end
|
||||
return
|
||||
end
|
||||
if not threat then
|
||||
if aura_env.config.debug then
|
||||
print(string.format("Could not get threat for %s (%s) with deliminer '%s'", msg, threat or "nil", aura_env.separator))
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user