From 93a26f660da63542831efbe7817541c3c7f2d63a Mon Sep 17 00:00:00 2001 From: Ackis Date: Wed, 10 Dec 2008 20:23:26 +0000 Subject: [PATCH] Check to see if the db is nil when you load, if it is, fire off an error message saying to delete your saved vars ffs and try again... need to verify what the hell my saved vars are saved as however. --- AckisRecipeList.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index d46bcd4..645049f 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -262,6 +262,11 @@ function addon:OnInitialize() addon.db = LibStub("AceDB-3.0"):New("ARLDB2",defaults) + if (not addon.db) then + self:Print("Error: Database not loaded correctly. Please exit out of WoW and delete the ARL database file (ARLDB2.lua) found in: \\World of Warcraft\\WTF\\Account\\>\\SavedVariables\\") + return + end + self:SetupOptions() -- Register slash commands -- 1.7.9.5