From e68b84ad9ae3f47c51639243839bdf58a3748d39 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 21 Oct 2015 13:33:26 -0700 Subject: [PATCH] Fix saving TypeErrors // FREEBIE --- js/models/messages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/models/messages.js b/js/models/messages.js index a2a9a4c2..2d711a4c 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -156,7 +156,7 @@ console.log(e.reason, e.stack); }); errors = errors.map(function(e) { - if (e.constructor === Error) { + if (e.constructor === Error || e.constructor === TypeError) { return _.pick(e, 'name', 'message', 'code', 'number', 'reason'); } return e;