aboutsummaryrefslogtreecommitdiffstats
path: root/util/datamanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-12-11 20:31:19 +0100
committerKim Alvefur <zash@zash.se>2015-12-11 20:31:19 +0100
commit6a9821a8c759da11b237ed55ae6c0357589f0312 (patch)
tree504d8a1566d4d4a5da265fc235ba68ce91ef478f /util/datamanager.lua
parent2482f0614a927f7cf733c4a86a85183009778efd (diff)
downloadprosody-6a9821a8c759da11b237ed55ae6c0357589f0312.tar.gz
prosody-6a9821a8c759da11b237ed55ae6c0357589f0312.zip
util.datamanager: Return extra location info
Diffstat (limited to 'util/datamanager.lua')
-rw-r--r--util/datamanager.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index e57d5fdc..c8dbaae9 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -220,7 +220,7 @@ local function append(username, host, datastore, ext, data)
-- File did probably not exist, let's create it
f, msg = io_open(filename, "w");
if not f then
- return nil, msg;
+ return nil, msg, "open";
end
end
@@ -239,7 +239,7 @@ local function append(username, host, datastore, ext, data)
ok, msg = f:write(data);
if not ok then
f:close();
- return ok, msg;
+ return ok, msg, "write";
end
ok, msg = f:close();
@@ -247,7 +247,7 @@ local function append(username, host, datastore, ext, data)
return ok, msg;
end
- return true;
+ return true, pos;
end
local function list_append(username, host, datastore, data)