Software /
code /
prosody
Changeset
3108:df0df92dd58a
util.datamanager: Return an error string when failing to save.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 23 May 2010 23:55:01 +0500 |
parents | 3091:d6a059af2077 |
children | 3109:34280b1544fc |
files | util/datamanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/datamanager.lua Sun May 23 05:46:52 2010 +0500 +++ b/util/datamanager.lua Sun May 23 23:55:01 2010 +0500 @@ -145,7 +145,7 @@ local f, msg = io_open(getpath(username, host, datastore, nil, true), "w+"); if not f then log("error", "Unable to write to "..datastore.." storage ('"..msg.."') for user: "..(username or "nil").."@"..(host or "nil")); - return; + return nil, "Error saving to storage"; end f:write("return "); append(f, data);