aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-10 00:23:47 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-10 00:23:47 +0500
commitd1d5bb6d1c37e09ed16ed65556fc1d072f26cf9c (patch)
tree272b5b4eff05a3c74519d5f4b63a29ee4904293c /util
parent899dfc626624520de7b794137d245fc7717e66ed (diff)
downloadprosody-d1d5bb6d1c37e09ed16ed65556fc1d072f26cf9c.tar.gz
prosody-d1d5bb6d1c37e09ed16ed65556fc1d072f26cf9c.zip
util.datamanager: Return an error string when pcall fails on a loaded list file.
Diffstat (limited to 'util')
-rw-r--r--util/datamanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index dfb74a63..fbdfb581 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;
+ return nil, "Error reading storage";
end
return items;
end