mod_storage_xmlarchive: Collect return value when adding to date index
authorKim Alvefur <zash@zash.se>
Tue, 02 Feb 2016 16:22:46 +0100
changeset 2042 a85b5c3791dc
parent 2041 632aa9f49aed
child 2043 464edd03099a
mod_storage_xmlarchive: Collect return value when adding to date index
mod_storage_xmlarchive/mod_storage_xmlarchive.lua
--- 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;