From 052f000db948216053d1f49a917cdf07ef902612 Mon Sep 17 00:00:00 2001 From: Matias Date: Mon, 25 Mar 2019 11:09:49 +0100 Subject: [PATCH] Adding indicator error Causing the process to fail when there was an error on the initialization of the indicator. --- Root.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Root.js b/Root.js index 23f587d6a..a12f148bb 100644 --- a/Root.js +++ b/Root.js @@ -725,9 +725,10 @@ } else { logger.write(MODULE_NAME, "[ERROR] start -> findProcess -> runIndicatorBot -> onInitializeReady -> err = " + err.message); - logger.write(MODULE_NAME, "[ERROR] start -> findProcess -> runIndicatorBot -> onInitializeReady -> Bot will not be started. "); + logger.write(MODULE_NAME, "[ERROR] start -> findProcess -> runIndicatorBot -> onInitializeReady -> Failed to initialize the bot. "); console.log(logDisplace + "Root : [ERROR] start -> findProcess -> runIndicatorBot -> onInitializeReady -> err = " + err.message); logger.persist(); + throw new Error("Root -> start -> findProcess -> runIndicatorBot -> onInitializeReady -> Failed to initialize the bot.") } } }