From d1191c509c197a50f20cddb779e18d3137d98e61 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 21 Sep 2015 11:48:57 -0700 Subject: [PATCH] Log outgoing errors individually // FREEBIE --- js/models/conversations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index a4d1f727..9dc781a8 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -101,12 +101,12 @@ 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]; } var keyErrors = []; _.each(errors, function(e) { + console.log(e); if (e.error.name === 'OutgoingIdentityKeyError') { keyErrors.push(e.error); }