Log errors when failing to save a message to storage

This commit is contained in:
JC Brand 2020-09-30 18:00:16 +02:00
parent b5783c0668
commit 02a9126ab6
2 changed files with 2 additions and 2 deletions

View File

@ -1012,7 +1012,7 @@ converse.plugins.add('converse-chat', {
* @method _converse.ChatBox#createMessage
*/
createMessage (attrs, options) {
return this.messages.create(attrs, Object.assign({'wait': true, 'promise':true}, options));
return this.messages.create(attrs, Object.assign({'wait': true, 'promise':true}, options)).catch(e => log.error(e));
},
/**

View File

@ -36,7 +36,7 @@
},
"gitHead": "9641dcdc820e029b05930479c242d2b707bbe8e2",
"devDependencies": {
"@converse/skeletor": "0.0.2",
"@converse/skeletor": "conversejs/skeletor#0f819a4f3ea013b3a48c3fcb600c3138559e1c0d",
"filesize": "^6.1.0",
"localforage": "^1.7.3",
"lodash-es": "^4.17.15",