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.
Ackis [12-10-08 - 20:23]
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.
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\\<Account Name>>\\SavedVariables\\")
+ return
+ end
+
self:SetupOptions()
-- Register slash commands