Exiting Process change

This commit is contained in:
Matias committed 2019-03-27 20:16:16 +01:00
1 parent 1b82fb8206
commit c01d5beed0
1 file changed
+3 -3
+3 -3
View File
@@ -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) {