From 2f93bf002affeda9136a9fee302a399f91a84ea1 Mon Sep 17 00:00:00 2001 From: Denis Gorbachev Date: Sun, 26 Apr 2015 16:15:51 +0300 Subject: [PATCH] blaze: Default to error if it's actually a string Fixes #4281 --- packages/blaze/exceptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/blaze/exceptions.js b/packages/blaze/exceptions.js index b210a35bdb..429ac82f73 100644 --- a/packages/blaze/exceptions.js +++ b/packages/blaze/exceptions.js @@ -39,7 +39,7 @@ Blaze._reportException = function (e, msg) { // In Chrome, `e.stack` is a multiline string that starts with the message // and contains a stack trace. Furthermore, `console.log` makes it clickable. // `console.log` supplies the space between the two arguments. - debugFunc()(msg || 'Exception caught in template:', e.stack || e.message); + debugFunc()(msg || 'Exception caught in template:', e.stack || e.message || e); }; Blaze._wrapCatchingExceptions = function (f, where) {