Skip to content

Commit

Permalink
Fix printed nil on updating aura
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds committed May 29, 2023
1 parent b0b515c commit 31ed745
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local L = WeakAuras.L

local pairs, next, type, unpack = pairs, next, type, unpack

local Type, Version = "WeakAurasPendingUpdateButton", 4
local Type, Version = "WeakAurasPendingUpdateButton", 5
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
local LibDD = LibStub:GetLibrary("LibUIDropDownMenu-4.0")

Expand Down Expand Up @@ -100,7 +100,7 @@ local methods = {
local auraData = WeakAuras.GetData(auraId)
if auraData then
local success, error = WeakAuras.Import(self.companionData.encoded, auraData)
if not success then
if not success and error ~= nil then
WeakAuras.prettyPrint(error)
end
end
Expand Down

0 comments on commit 31ed745

Please sign in to comment.