# HG changeset patch # User Kim Alvefur # Date 1487551664 -3600 # Node ID d47a7e6e9adcaab8230aef8b6ec1320e0bd837d1 # Parent 66a61f48e376c7b1c4963841ee4beeb0aad3ed35 mod_storage_xmlarchive: Raise error instead of warning if there's ever more than one stanza in a chunk (this indicates some kind of corruption) diff -r 66a61f48e376 -r d47a7e6e9adc mod_storage_xmlarchive/mod_storage_xmlarchive.lua --- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon Feb 20 00:09:45 2017 +0100 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon Feb 20 01:47:44 2017 +0100 @@ -83,9 +83,7 @@ local result; local function cb(_, stanza) - if result then - module:log("warn", "Multiple items in chunk"); - end + assert(not result, "Multiple items in chunk"); result = stanza; end