- Added /details exitlog: shows occurrences of errors during the last logoff.

This commit is contained in:
tercio
2014-12-30 01:17:59 -02:00
parent 4bf68ad564
commit 6c0f98b736
3 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
_detalhes.build_counter = 319 --it's 319 for release
_detalhes.userversion = "v3.6.14"
_detalhes.userversion = "v3.6.14a"
_detalhes.realversion = 55 --core version
_detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")"
+2
View File
@@ -394,8 +394,10 @@ function _detalhes:ApplyProfile (profile_name, nosave, is_copy)
instance.posicao = table_deepcopy (skin.__pos)
else
if (not instance.posicao) then
print ("|cFFFF2222Details!: Position for a window wasn't found! Moving it to the center of the screen.|r\nType '/details exitlog' to check for errors.")
instance.posicao = {normal = {x = 1, y = 1, w = 300, h = 200}, solo = {}}
elseif (not instance.posicao.normal) then
print ("|cFFFF2222Details!: Normal position for a window wasn't found! Moving it to the center of the screen.|r\nType '/details exitlog' to check for errors.")
instance.posicao.normal = {x = 1, y = 1, w = 300, h = 200}
end
end
+18
View File
@@ -82,6 +82,24 @@ function SlashCmdList.DETAILS (msg, editbox)
-------- debug ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
elseif (msg == "exitlog") then
local exitlog = _detalhes_global.exit_log
local exiterrors = _detalhes_global.exit_errors
print ("EXIT LOG:")
for index, text in ipairs (exitlog) do
print (text)
end
print ("ERRORS:")
if (exiterrors) then
for index, text in ipairs (exiterrors) do
print (text)
end
else
print ("|cFF00FF00No error occured!|r")
end
elseif (msg == "realmsync") then
_detalhes.realm_sync = not _detalhes.realm_sync