X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Fdatamanager.lua;h=57cd2594e954d81f9c9cc56310eb6434183a8caa;hb=18f2f57edc0b7caf9be451a43c00a9d1147dfd63;hp=9d96e5b37a5f733ec00665454da4a623fc155588;hpb=213f2c6831beae987b95d6ac830c1219a51cc3ff;p=prosody.git diff --git a/util/datamanager.lua b/util/datamanager.lua index 9d96e5b3..57cd2594 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -145,7 +145,7 @@ function store(username, host, datastore, data) 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);