Configured to not Support Time Frames

This commit is contained in:
Luis Fernando Molina committed 2020-07-27 12:47:54 +02:00
1 parent d4443b0350
commit b38d32b3ca
3 files changed
+19 -2

No files matched your search

+4
View File
@@ -126,6 +126,10 @@ function newDailyFiles () {
/* It is ok, we will deal with this later */
break
}
if (err.message === 'Configured to not Support This.') {
/* It is ok, we will deal with this later */
break
}
if (err.message === 'Missing Configuration.') {
if (ERROR_LOG === true) { logger.write('[WARN] initialize -> onFileReceived -> The needed configuration to locate the timeFrames is missing at the dataSet.') }
if (ERROR_LOG === true) { logger.write('[WARN] initialize -> onFileReceived -> Time Frames Filters will be ignored -> Product = ' + pProduct.config.codeName) }
+11 -2
View File
@@ -52,8 +52,17 @@ function newFileCloud () {
}
if (pTimeFrames !== undefined) {
if (pDataset.config.timeFrames !== undefined) {
fileName = pDataset.config.timeFrames.fileName
filePath = pDataset.config.timeFrames.filePath
if (pDataset.config.timeFrames.fileName !== '') {
fileName = pDataset.config.timeFrames.fileName
filePath = pDataset.config.timeFrames.filePath
} else {
let customErr = {
result: GLOBAL.CUSTOM_FAIL_RESPONSE.result,
message: 'Configured to not Support This.'
}
callBackFunction(customErr)
return
}
} else {
let customErr = {
result: GLOBAL.CUSTOM_FAIL_RESPONSE.result,
+4
View File
@@ -125,6 +125,10 @@ function newMarketFiles () {
/* It is ok, we will deal with this later */
break
}
if (err.message === 'Configured to not Support This.') {
/* It is ok, we will deal with this later */
break
}
if (err.message === 'Missing Configuration.') {
if (ERROR_LOG === true) { logger.write('[WARN] initialize -> onFileReceived -> The needed configuration to locate the timeFrames is missing at the dataSet.') }
if (ERROR_LOG === true) { logger.write('[WARN] initialize -> onFileReceived -> Time Frames Filters will be ignored -> Product = ' + pProduct.config.codeName) }