From cc49dd3f179b4cd1a306f43ed4d133f7cc1875cf Mon Sep 17 00:00:00 2001 From: Matias Date: Tue, 26 Mar 2019 18:50:22 +0100 Subject: [PATCH] Throwing error to allow kubernetes restart --- Run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Run.js b/Run.js index 97f972dfe..e3d194ece 100644 --- a/Run.js +++ b/Run.js @@ -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.");