projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
099473a
)
util.datamanager: Return extra location info
author
Kim Alvefur
<zash@zash.se>
Fri, 11 Dec 2015 19:31:19 +0000
(20:31 +0100)
committer
Kim Alvefur
<zash@zash.se>
Fri, 11 Dec 2015 19:31:19 +0000
(20:31 +0100)
util/datamanager.lua
patch
|
blob
|
history
diff --git
a/util/datamanager.lua
b/util/datamanager.lua
index e57d5fdc5ecdae39ed86598a0022cba47d78c7d6..c8dbaae9f96d0bc26e2113d90790bacb7eeef511 100644
(file)
--- 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)