All pastes #114914 Raw Edit

error trigger

public lua v1 · immutable
·published 2006-08-04 07:38 UTC
rendered paste body
    -- Now trigger an event if someone's listening. If not, just print    -- it to the chat frame so it doesn't get lost.    if AceLibrary and AceLibrary:HasInstance("AceEvent-2.0") then        AceLibrary("AceEvent-2.0"):TriggerEvent("BugGrabber_ErrorGrabbed", oe)    else        ChatFrame1:AddMessage("BugGrabber captured an error:\n" .. BugGrabber.FormatError(oe))    end