提交 ec5706e3 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix(handler): do not handle global rejection, leave it to user...

fix(handler): do not handle global rejection, leave it to user (https://github.com/lijiarui/robot_ts/issues/5)
上级 34e3e44a
......@@ -204,6 +204,7 @@ export {
/**
* to handle unhandled exceptions
*/
/*
process.on('unhandledRejection', (reason, promise) => {
log.error('Config', '###########################')
log.error('Config', 'unhandledRejection: %s %s', reason, promise)
......@@ -212,3 +213,4 @@ process.on('unhandledRejection', (reason, promise) => {
log.error('Config', 'unhandledRejection::catch(%s)', err.message || err)
})
})
*/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册