MAM: better error logging
This commit is contained in:
parent
1c2c03dc8b
commit
c4c7e41981
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user