Expose error stack trace when caught in bindAndCatch

This commit is contained in:
Avital Oliver
2013-07-02 15:17:42 -07:00
parent e2951cca6c
commit d8a955b989

View File

@@ -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);
});
};