Handling File Not Found
This commit is contained in:
1 parent
517c4e5b9e
commit
6f00e65855
2 files changed
+2
-2
No files matched your search
@@ -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.");
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in new issue
Block a user