From 90c742d57c552828a12519c1a0d327d919e6f594 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 9 Apr 2015 12:50:11 -0700 Subject: [PATCH] More error logging --- js/models/conversations.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index 87854155..5173d348 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -105,9 +105,12 @@ extension.trigger('message', message); // notify frontend listeners }); } else { + if (!(errors instanceof Array)) { + errors = [errors]; + } errors.map(function(e) { if (e.error && e.error.stack) { - console.log(e.error && e.error.stack); + console.error(e.error.stack); } }); throw errors;