Skip to content

Commit

Permalink
Error handling mysterious PlayerFrame SetUserPlaced
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Dec 20, 2020
1 parent e54c756 commit 0f82f31
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Aptechka.lua
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function Aptechka.PLAYER_LOGIN(self,event,arg1)
Aptechka.Roster = Roster

if AptechkaDB.global.disableBlizzardPlayer then
helpers.DisableBlizzPlayerFrame()
Aptechka:SafeCallDirect(helpers.DisableBlizzPlayerFrame)
end
if AptechkaDB.global.disableBlizzardParty then
helpers.DisableBlizzParty()
Expand Down Expand Up @@ -2291,6 +2291,18 @@ do
end
end
end
local errorhandler2 = function(err)
print("|cffff7777Aptechka Error:|r")
print(err)
end
function Aptechka:SafeCallDirect(func, ...)
if func then
local ok, ret = xpcall(func, errorhandler2, ...)
if ok then
return ret
end
end
end
end

function Aptechka.SetupFrame(header, frameName)
Expand Down

0 comments on commit 0f82f31

Please sign in to comment.