From: Waqas Hussain Date: Thu, 9 Dec 2010 19:21:09 +0000 (+0500) Subject: util.datamanager: When failing to load a list file, and the file exists, log an error... X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=4017f4bf8b6f4189aa10dd814d4c3ee8842cdb16;p=prosody.git util.datamanager: When failing to load a list file, and the file exists, log an error, and return nil, error. --- diff --git a/util/datamanager.lua b/util/datamanager.lua index fbdfb581..dfb74a63 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -219,7 +219,7 @@ function list_load(username, host, datastore) 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, "Error reading storage"; + return nil; end return items; end