Show error message on unhandled errors instead of duplicating the stack

Not sure if this is correct in all cases
This commit is contained in:
Dan Stillman 2016-04-15 04:20:59 -04:00
parent 8e932ce73f
commit ee5a62b9f4

View File

@ -103,7 +103,7 @@
// Ignore some errors during tests
if (e.message && e.message.indexOf(' -- ignore') != -1) return;
self.debug('Possibly unhandled rejection:\n\n' + e.stack);
self.debug('Possibly unhandled rejection:\n\n' + e.message);
throw e;
});
return;