提交 2f189369 编写于 作者: Z Zainan Victor Zhou 提交者: Huan (李卓桓)

Printout entire error trace when unhandledRejection was caught (#361)

上级 e7a30594
......@@ -224,7 +224,8 @@ process.on('unhandledRejection', (reason, promise) => {
log.error('Config', 'unhandledRejection: %s %s', reason, promise)
log.error('Config', '###########################')
promise.catch(err => {
log.error('Config', 'unhandledRejection::catch(%s)', err.message || err)
log.error('Config', 'unhandledRejection::catch(%s)', err.message)
console.error('Config', err); // I don't know if log.error has similar full trace print support like console.error
})
})
*/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册