From d8a955b98908aeacef249c24172fb8fb28d2ed2d Mon Sep 17 00:00:00 2001 From: Avital Oliver Date: Tue, 2 Jul 2013 15:17:42 -0700 Subject: [PATCH] Expose error stack trace when caught in bindAndCatch --- packages/meteor/timers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/meteor/timers.js b/packages/meteor/timers.js index 698d2ab507..1c3bc1330a 100644 --- a/packages/meteor/timers.js +++ b/packages/meteor/timers.js @@ -11,7 +11,7 @@ var withoutInvocation = function (f) { var bindAndCatch = function (context, f) { return Meteor.bindEnvironment(withoutInvocation(f), function (e) { // XXX report nicely (or, should we catch it at all?) - Meteor._debug("Exception from " + context + ":", e); + Meteor._debug("Exception from " + context + ":", e, e.stack); }); };