fix: suppress nonfatal errors by default

This commit is contained in:
Xurkon
2026-06-05 06:24:21 -05:00
parent a1c6a181fc
commit 1d58e3fc79
9 changed files with 83 additions and 13 deletions
+4 -4
View File
@@ -607,9 +607,9 @@ function _QuestieComms:BroadcastQuestLog(eventName, sendMode, targetPlayer) -- b
local sorted = {}
for questId, data in pairs(QuestLogCache.questLog_DO_NOT_MODIFY) do -- DO NOT MODIFY THE RETURNED TABLE
if (not QuestieDB.QuestPointers[questId]) then
if (not QuestieDB.QuestPointers[questId]) then
if not Questie._sessionWarnings[questId] then
if not Questie.IsSoD then Questie:Error(l10n("The quest %s is missing from Questie's database. Please report this on GitHub or Discord!", tostring(questId))) end
if not Questie.IsSoD then Questie:Debug(Questie.DEBUG_CRITICAL, l10n("The quest %s is missing from Questie's database. Please report this on GitHub or Discord!", tostring(questId))) end
Questie._sessionWarnings[questId] = true
end
else
@@ -730,9 +730,9 @@ function _QuestieComms:BroadcastQuestLogV2(eventName, sendMode, targetPlayer) --
local sorted = {}
for questId, data in pairs(QuestLogCache.questLog_DO_NOT_MODIFY) do -- DO NOT MODIFY THE RETURNED TABLE
if (not QuestieDB.QuestPointers[questId]) then
if (not QuestieDB.QuestPointers[questId]) then
if not Questie._sessionWarnings[questId] then
if not Questie.IsSoD then Questie:Error(l10n("The quest %s is missing from Questie's database. Please report this on GitHub or Discord!", tostring(questId))) end
if not Questie.IsSoD then Questie:Debug(Questie.DEBUG_CRITICAL, l10n("The quest %s is missing from Questie's database. Please report this on GitHub or Discord!", tostring(questId))) end
Questie._sessionWarnings[questId] = true
end
else
+2 -2
View File
@@ -953,7 +953,7 @@ function QuestieQuest:GetAllQuestIds()
if not quest then
if not Questie._sessionWarnings[questId] then
if not Questie.IsSoD then
Questie:Error(l10n(
Questie:Debug(Questie.DEBUG_CRITICAL, l10n(
"The quest %s is missing from Questie's database. Please report this on GitHub or Discord!",
tostring(questId)))
end
@@ -1150,7 +1150,7 @@ function QuestieQuest:GetAllQuestIdsNoObjectives()
if not quest then
if not Questie._sessionWarnings[questId] then
if not Questie.IsSoD then
Questie:Error(l10n(
Questie:Debug(Questie.DEBUG_CRITICAL, l10n(
"The quest %s is missing from Questie's database. Please report this on GitHub or Discord!",
tostring(questId)))
end
+1 -2
View File
@@ -232,8 +232,7 @@ function _EventHandler:PlayerLogin()
-- Check config exists
if not Questie.db or not QuestieConfig then
-- Did you move Questie.db = LibStub("AceDB-3.0"):New("QuestieConfig",.......) out of Questie:OnInitialize() ?
Questie:Error("Config DB from saved variables is not loaded and initialized. Please report this issue on Questie github or discord.")
error("Config DB from saved variables is not loaded and initialized. Please report this issue on Questie github or discord.")
Questie:Fatal("Config DB from saved variables is not loaded and initialized. Please report this issue on Questie github or discord.")
return
end
+2 -2
View File
@@ -183,7 +183,7 @@ end
---Run the validator
local function runValidator()
if type(QuestieDB.questData) == "string" or type(QuestieDB.npcData) == "string" or type(QuestieDB.objectData) == "string" or type(QuestieDB.itemData) == "string" then
Questie:Error("Cannot run the validator on string data, load database first")
Questie:Debug(Questie.DEBUG_CRITICAL, "Cannot run the validator on string data, load database first")
return
end
-- Run validator
@@ -416,7 +416,7 @@ QuestieInit.Stages[3] = function() -- run as a coroutine
if QuestieArrow and QuestieArrow.Initialize then
QuestieArrow:Initialize()
else
Questie:Error("[QuestieArrow] Module not loaded correctly (missing Initialize).")
Questie:Fatal("[QuestieArrow] Module not loaded correctly (missing Initialize).")
end
TrackerQuestTimers:Initialize()
QuestieComms:Initialize()
+1 -1
View File
@@ -27,7 +27,7 @@ local function InitializeQuestie()
LibStub("AceAddon-3.0"):NewAddon(existingQuestie, addonName, "AceConsole-3.0", "AceEvent-3.0", "AceTimer-3.0", "AceComm-3.0", "AceBucket-3.0")
end)
if not ok then
Questie:Error("ERROR inside NewAddon: " .. tostring(err))
Questie:Fatal("ERROR inside NewAddon: " .. tostring(err))
end
-- Ensure the global reference points to our unified object