Handling File Not Found

This commit is contained in:
Luis Fernando Molina committed 2019-08-09 00:34:42 +02:00
1 parent 517c4e5b9e
commit 6f00e65855
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -316,7 +316,7 @@ Read the candles and volumes from Bruce and produce a file for each day and for
}
} else {
if (err.message === 'File does not exist.') {
if (err.message === 'File does not exist.' || err.code === 'The specified key does not exist.') {
logger.write(MODULE_NAME, "[ERROR] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Dependency Not Ready -> err = " + err.message);
logger.write(MODULE_NAME, "[ERROR] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Asuming this is a temporary situation. Requesting a Retry.");
+1 -1
View File
@@ -529,7 +529,7 @@
}
} else {
if (err.message === 'File does not exist.') {
if (err.message === 'File does not exist.' || err.code === 'The specified key does not exist.') {
logger.write(MODULE_NAME, "[ERROR] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Dependency Not Ready -> err = " + err.message);
logger.write(MODULE_NAME, "[ERROR] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> onFileReceived -> Asuming this is a temporary situation. Requesting a Retry.");