MAM: better error logging

This commit is contained in:
JC Brand 2020-04-10 16:04:46 +02:00
parent 1c2c03dc8b
commit c4c7e41981

View File

@ -131,9 +131,9 @@ converse.plugins.add('converse-mam', {
_converse.onMAMError = function (iq) { _converse.onMAMError = function (iq) {
if (iq && iq.querySelectorAll('feature-not-implemented').length) { if (iq && iq.querySelectorAll('feature-not-implemented').length) {
log.warn("Message Archive Management (XEP-0313) not supported by this server"); log.warn(`Message Archive Management (XEP-0313) not supported by ${iq.getAttribute('from')}`);
} else { } else {
log.error("An error occured while trying to set archiving preferences."); log.error(`Error while trying to set archiving preferences for ${iq.getAttribute('from')}.`);
log.error(iq); log.error(iq);
} }
}; };