From 96c297735a92145544678c868edc76ffdf3330f3 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 10 Sep 2020 12:28:44 +0200 Subject: [PATCH] Update Session.js --- Session.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Session.js b/Session.js index 88682d775..3d823a2ca 100644 --- a/Session.js +++ b/Session.js @@ -241,6 +241,12 @@ return false } bot.SESSION.parameters.timeFrame.config.value = getTimeFrameFromLabel(bot.SESSION.parameters.timeFrame.config.label) + if (bot.SESSION.parameters.timeFrame.config.value === undefined) { + let errorMessage = "Config error: label value not recognized. Try 01-min or 01-hs for example." + parentLogger.write(MODULE_NAME, "[ERROR] initialize -> checkParemeters -> " + errorMessage) + bot.sessionError(bot.SESSION.parameters.timeFrame, errorMessage) + return false + } /* Session Base Asset */ if (bot.SESSION.parameters.sessionBaseAsset === undefined) {