Better handling bad timePerdiod definition

This commit is contained in:
Luis Fernando Molina committed 2019-10-17 22:19:30 +02:00
1 parent 2311838023
commit 0ff6e43075
1 file changed
+7 -3
+7 -3
View File
@@ -827,8 +827,12 @@
n = 0;
callTheBot();
if (currentTimePeriod !== undefined) {
callTheBot();
} else {
logger.write(MODULE_NAME, "[ERROR] start -> processTimePeriodsDailyFiles -> periodsControlLoop -> Time Period not Recognized. Can not continue." );
callBackFunction(global.DEFAULT_FAIL_RESPONSE);
}
}
}
catch (err) {
@@ -842,7 +846,7 @@
try {
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> processTimePeriodsDailyFiles -> callTheBot -> Entering function."); }
usertBot.start(
multiPeriodDataFiles,
currentTimePeriod,