From 7fc1fbf834ef0df8c91826d17d2bafc07e245276 Mon Sep 17 00:00:00 2001 From: "Nathanial.C.Jones" Date: Fri, 3 Dec 2010 00:17:29 +0000 Subject: [PATCH] Doh\! Screwed up the error call. Should work right this time. --- QuestHelper/utility.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/QuestHelper/utility.lua b/QuestHelper/utility.lua index f43a301..9106dfd 100644 --- a/QuestHelper/utility.lua +++ b/QuestHelper/utility.lua @@ -84,30 +84,30 @@ function QuestHelper:ZoneSanity() -- c,z should be equal to name, unless c = 5 and z = 0, in which case it should be equal to name .. " Continent" if QuestHelper_Zones[c][z] ~= name then sane = false - QuestHelper:ExplicitError(false, string.format("'%s' has the wrong ID (should be %d,%d).")) + QuestHelper_ErrorCatcher_ExplicitError(false, string.format("'%s' has the wrong ID (should be %d,%d).")) --QuestHelper:TextOut(string.format("'%s' has the wrong ID (should be %d,%d).", name, c, z)) end local pair = QuestHelper_ZoneLookup[name] if not pair then sane = false - QuestHelper:ExplicitError(false, string.format("ZoneLookup['%s'] is missing data. PANIC!", name)) + QuestHelper_ErrorCatcher_ExplicitError(false, string.format("ZoneLookup['%s'] is missing data. PANIC!", name)) elseif c ~= pair[1] or z ~= pair[2] then sane = false - QuestHelper:ExplicitError(false, string.format("ZoneLookup['%s'] maps to wrong pair. It should be (%d, %d) but is (%d, %d)", name, c, z, pair[1], pair[2])) + QuestHelper_ErrorCatcher_ExplicitError(false, string.format("ZoneLookup['%s'] maps to wrong pair. It should be (%d, %d) but is (%d, %d)", name, c, z, pair[1], pair[2])) --QuestHelper:TextOut("ZoneLookup['"..name.."'] maps to wrong pair.") end local index = QuestHelper_IndexLookup[name] if QuestHelper_ZoneLookup[index] ~= pair then sane = false - QuestHelper:ExplicitError(false, "ZoneLookup['"..name.."'] isn't equal to ZoneLookup["..index.."] they are "..tostring(QuestHelper_ZoneLookup[name]).." and "..tostring(QuestHelper_ZoneLookup[index])..", respectively.") + QuestHelper_ErrorCatcher_ExplicitError(false, "ZoneLookup['"..name.."'] isn't equal to ZoneLookup["..index.."] they are "..tostring(QuestHelper_ZoneLookup[name]).." and "..tostring(QuestHelper_ZoneLookup[index])..", respectively.") --QuestHelper:TextOut("ZoneLookup['"..name.."'] isn't equal to ZoneLookup["..index.."] they are "..tostring(QuestHelper_ZoneLookup[name]).." and "..tostring(QuestHelper_ZoneLookup[index])..", respectively.") end if not index or QuestHelper_NameLookup[index] ~= name then sane = false - QuestHelper:ExplicitError(false, "NameLookup["..(index or "???").."] doesn't equal '"..name.."', it is "..tostring(QuestHelper_NameLookup[index])) + QuestHelper_ErrorCatcher_ExplicitError(false, "NameLookup["..(index or "???").."] doesn't equal '"..name.."', it is "..tostring(QuestHelper_NameLookup[index])) --QuestHelper:TextOut("NameLookup["..(index or "???").."] doesn't equal '"..name.."', it is "..tostring(QuestHelper_NameLookup[index])) end end