View Single Post
06-02-20, 09:07 PM   #5
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
Try:
Code:
local function AST_Event_LUAWarning(self, event, ...)
    HandleLuaWarning(...)
end
or possibly:
Code:
local function AST_Event_LUAWarning(self, event, ...)
	local warnType, warningText = ...
	if warnType == LUA_WARNING_TREAT_AS_ERROR -- 0
		HandleLuaWarning(...)
	else
		print("Warning: LUA_WARNING, type: " .. tostring(warnType) .. ", text: " .. warningText)
	end
end
A warnType of 0 appears to mean a script error rather than one coming from the game engine.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 06-02-20 at 09:27 PM.
  Reply With Quote