Software /
code /
prosody
Changeset
3723:72a917d910a4
util.datamanager: Return an error string when pcall fails on a loaded list file.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 10 Dec 2010 00:23:47 +0500 |
parents | 3722:f15b6ed967b7 |
children | 3724:c12ebbd4ab61 3762:f02bac902a1e |
files | util/datamanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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