Fixing the problems I have introduced in my last change.

This commit is contained in:
2024-08-27 12:59:41 -05:00
parent a6b7fc7afe
commit 44dc8a4254
5 changed files with 9 additions and 9 deletions

View File

@@ -34,9 +34,9 @@ symbolCheck=$(jq -r ${jqQuery} < temp/optionChain.${symbol}.tmp.$$.json)
if [[ "${symbol}" != "${symbolCheck}" ]]; then
errMsg="ERROR: THE RESPONSE IS INCORRECT! Symbol: _${symbol}_ Check: _${symbolCheck}_ check file _temp/optionChain.${symbol}.tmp.$$.json_"
if [[ "${ErrorLogLevel}" == "err" ]]; then
throw ${errMsg} ${ErrorLogLevel} 2
throw "${errMsg}" ${ErrorLogLevel} 2
else
log ${errMsg} ${ErrorLogLevel}
log "${errMsg}" ${ErrorLogLevel}
fi
else
optionChainFileName=$(date "+%Y-%m-%d %H_%M_%S")_optionChain.${symbol}.json