# HG changeset patch # User Kim Alvefur # Date 1577139519 -3600 # Node ID 86422db90e02dfb7f2d63824499c8b0a23d7f62d # Parent b1ca849b8e3a29d8ddfa95496f0f2604e184f1c7 mod_mam: Log error when unable to store stanza (fix #1478) Unclear what else to do here. Caught by luacheck diff -r b1ca849b8e3a -r 86422db90e02 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Mon Dec 23 22:42:39 2019 +0100 +++ b/plugins/mod_mam/mod_mam.lua Mon Dec 23 23:18:39 2019 +0100 @@ -305,6 +305,8 @@ event.stanza = clone_for_other_handlers; schedule_cleanup(store_user); module:fire_event("archive-message-added", { origin = origin, stanza = clone_for_storage, for_user = store_user, id = id }); + else + log("error", "Could not archive stanza: %s", err); end else log("debug", "Not archiving stanza: %s (prefs)", stanza:top_tag());