Exiting Process change
This commit is contained in:
1 parent
1b82fb8206
commit
c01d5beed0
1 file changed
+3
-3
@@ -16,13 +16,13 @@ global.MARKET = {
|
||||
process.on('uncaughtException', function (err) {
|
||||
console.log('[INFO] Run -> uncaughtException -> err.message = ' + err.message);
|
||||
console.log('[INFO] Run -> uncaughtException -> err.stack = ', err.stack);
|
||||
throw new Error()
|
||||
process.exit(1)
|
||||
});
|
||||
|
||||
process.on('unhandledRejection', (reason, p) => {
|
||||
console.log('[INFO] Run -> unhandledRejection -> reason = ' + reason);
|
||||
console.log('[INFO] Run -> unhandledRejection -> reason = ' + JSON.stringify(reason));
|
||||
console.log('[INFO] Run -> unhandledRejection -> p = ' + JSON.stringify(p));
|
||||
throw new Error()
|
||||
process.exit(1)
|
||||
});
|
||||
|
||||
process.on('exit', function (code) {
|
||||
|
||||
Reference in new issue
Block a user