projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e76af39
)
util.datamanager: Return an error string when pcall fails on a loaded list file.
author
Waqas Hussain
<waqas20@gmail.com>
Thu, 9 Dec 2010 19:23:47 +0000
(
00:23
+0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Thu, 9 Dec 2010 19:23:47 +0000
(
00:23
+0500)
util/datamanager.lua
patch
|
blob
|
history
diff --git
a/util/datamanager.lua
b/util/datamanager.lua
index dfb74a631df86fdbe58f99578233c83f9b8b707e..fbdfb581b66ef9208d37002c4e1b24125313f379 100644
(file)
--- 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