Log outgoing errors

// FREEBIE
This commit is contained in:
lilia 2015-09-21 11:02:33 -07:00
parent ce49d14d85
commit ada3d999e0

View file

@ -101,6 +101,7 @@
sendFunc(this.get('id'), body, attachments, now).then(function() {
message.save({'sent': true});
}.bind(this)).catch(function(errors) {
console.log(errors);
if (errors instanceof Error) {
errors = [errors];
}