Throwing error to allow kubernetes restart

This commit is contained in:
Matias committed 2019-03-26 18:50:22 +01:00
1 parent 95e33ec258
commit cc49dd3f17
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@ process.on('unhandledRejection', (reason, p) => {
process.on('exit', function (code) {
try {
console.log('[INFO] Run -> process.on.exit -> About to exit -> code = ' + code);
return;
throw new Error()
}
catch (err) {
console.log("[ERROR] Run -> process.on.exit -> Error Logging Error Code.");