Commit 02a9126a authored by JC Brand's avatar JC Brand

Log errors when failing to save a message to storage

parent b5783c06
......@@ -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));
},
/**
......
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment