# HG changeset patch # User Kim Alvefur # Date 1449862279 -3600 # Node ID 2743759ca1b5d52ad5dfafd58b92e7189e3a8264 # Parent 2b57f77985a3e53c13f8574a27ad624b1c1fe2c1 util.datamanager: Return extra location info diff -r 2b57f77985a3 -r 2743759ca1b5 util/datamanager.lua --- a/util/datamanager.lua Fri Dec 11 20:30:39 2015 +0100 +++ b/util/datamanager.lua Fri Dec 11 20:31:19 2015 +0100 @@ -220,7 +220,7 @@ -- 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 @@ 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 @@ return ok, msg; end - return true; + return true, pos; end local function list_append(username, host, datastore, data)