1
0
Bifurcation 0

This should add player leve, race, class and realm to the error messages.

Cette révision appartient à :
Nathanial.C.Jones 2011-03-02 02:13:09 +00:00
Parent 4522e80854
révision 9a29a29834
1 fichiers modifiés avec 6 ajouts et 0 suppressions

Voir le fichier

@ -29,6 +29,10 @@ end
-- ganked verbatim from Swatter
function QuestHelper_ErrorCatcher.GetPlayerInfo()
return string.format("Level %s %s (%s) %s (%s) on %s", UnitLevel("player"), UnitRace("player"), UnitClass("player"), GetRealmName())
end
function QuestHelper_ErrorCatcher.GetQuests()
local return_string = ""
@ -174,6 +178,7 @@ function QuestHelper_ErrorCatcher_ExplicitError(loud, o_msg, o_frame, o_stack, .
terror.stack = o_stack or terror.stack
terror.silent = not loud
terror.quests = QuestHelper_ErrorCatcher.GetQuests()
terror.pinfo = QuestHelper_ErrorCatcher.GetPlayerInfo()
QuestHelper_ErrorCatcher_RegisterError("crash", terror)
@ -210,6 +215,7 @@ function QuestHelper_ErrorCatcher_GenerateReport()
terror.silent = "(Full report)"
terror.generated = true
terror.quests = QuestHelper_ErrorCatcher.GetQuests()
terror.pinfo = QuestHelper_ErrorCatcher.GetPlayerInfo()
first_error = terror
end