Changeset

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
parents 2037:632aa9f49aed
children 2039:464edd03099a
files mod_storage_xmlarchive/mod_storage_xmlarchive.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;