Normal exit process

This commit is contained in:
Matias committed 2019-03-27 14:49:48 +01:00
1 parent 471d6b8546
commit 1b82fb8206
1 file changed
+1 -9
+1 -9
View File
@@ -26,15 +26,7 @@ process.on('unhandledRejection', (reason, p) => {
});
process.on('exit', function (code) {
try {
console.log('[INFO] Run -> process.on.exit -> About to exit -> code = ' + code);
throw new Error()
}
catch (err) {
console.log("[ERROR] Run -> process.on.exit -> Error Logging Error Code.");
console.log("[ERROR] Run -> process.on.exit -> err.message = " + err.message);
return;
}
console.log('[INFO] Run -> process.on.exit -> About to exit -> code = ' + code);
});
readExecutionConfiguration();