Diff

mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 2038:a85b5c3791dc

mod_storage_xmlarchive: Collect return value when adding to date index
author Kim Alvefur <zash@zash.se>
date Tue, 02 Feb 2016 16:22:46 +0100
parent 1969:e63dba236a2a
child 2040:459e1878d23c
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Tue Feb 02 16:20:06 2016 +0100
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Tue Feb 02 16:22:46 2016 +0100
@@ -40,7 +40,7 @@
 	if offset == 0 then
 		-- means the message is at the beginnig of the file, so it's a new day
 		-- so we add this new day to the "index"
-		dm.list_append(username, module.host, self.store, day);
+		ok, err = dm.list_append(username, module.host, self.store, day);
 	end
 	if not ok then
 		return nil, err;