# HG changeset patch # User Waqas Hussain # Date 1291922627 -18000 # Node ID 4860853fc97b80cfacf29285c4fe979693dc2574 # Parent 9cdc19ed3034593b1bc1dc2aab5430ded52efe28 util.datamanager: Return an error string when pcall fails on a loaded list file. diff -r 9cdc19ed3034 -r 4860853fc97b util/datamanager.lua --- a/util/datamanager.lua Fri Dec 10 00:21:09 2010 +0500 +++ b/util/datamanager.lua Fri Dec 10 00:23:47 2010 +0500 @@ -219,7 +219,7 @@ local success, ret = pcall(data); if not success then log("error", "Unable to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil")); - return nil; + return nil, "Error reading storage"; end return items; end