Log the actual error on MAM error

This commit is contained in:
Emmanuel Gil Peyrot 2018-11-17 18:38:35 +01:00
parent d3a684a57d
commit 223deaa782

View File

@ -238,11 +238,12 @@ converse.plugins.add('converse-mam', {
this.clearSpinner();
_.each(messages, message_handler);
},
() => { // Error
e => { // Error
this.clearSpinner();
_converse.log(
"Error or timeout while trying to fetch "+
"archived messages", Strophe.LogLevel.ERROR);
_converse.log(e, Strophe.LogLevel.ERROR);
}
);
},