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

@@ -40,9 +40,9 @@ marketsCheck=$(jq -e -r '.. | .isOpen?' temp/markets.tmp.$$.json | grep -v null
if [[ ${marketsCheck} -eq 0 ]]; then
errMsg="ERROR: THE RESPONSE IS INCORRECT! markets: _${markets}_ Check: _${marketsCheck}_ check file _temp/markets.tmp.$$.json_"
if [[ "${ErrorLogLevel}" == "err" ]]; then
throw ${errMsg} ${ErrorLogLevel}
throw "${errMsg}" ${ErrorLogLevel}
else
log ${errMsg} ${ErrorLogLevel}
log "${errMsg}" ${ErrorLogLevel}
fi
else
jq < temp/markets.tmp.$$.json