Merge pull request #1387 from peerlibrary/wrapasync-err

Check for err.stack in logErr in wrapAsync
This commit is contained in:
Emily Stark
2013-09-01 19:06:22 -07:00

View File

@@ -84,7 +84,7 @@ _.extend(Meteor, {
var logErr = function (err) {
if (err)
return Meteor._debug("Exception in callback of async function",
err ? err.stack : err);
err.stack ? err.stack : err);
};
// Pop off optional args that are undefined