aboutsummaryrefslogtreecommitdiffstats
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
commite74066417c8d4a5dbc429ef82d0e9268f8b4e6fd (patch)
tree894f1ebd380a3675c11a4c5ea8a8542bf3576628
parentfc496f1fd16145dfb463a306808bf128d6a755ab (diff)
downloadprosody-e74066417c8d4a5dbc429ef82d0e9268f8b4e6fd.tar.gz
prosody-e74066417c8d4a5dbc429ef82d0e9268f8b4e6fd.zip
util.datamanager: Return an error string when pcall fails on a loaded list file.
-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