Log message for unhandled promise rejection when string is thrown

This commit is contained in:
Dan Stillman 2016-04-29 23:31:49 -04:00
parent 13c4bbebfa
commit b4a9858f37

View file

@ -100,7 +100,7 @@
return;
}
self.debug('Possibly unhandled rejection:\n\n' + e.message);
self.debug('Possibly unhandled rejection:\n\n' + (e.message || e));
throw e;
});
return;