Skip to content

Commit

Permalink
handle case when server response with non-200 code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sild authored Nov 25, 2022
1 parent 0a9956f commit 1c21002
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/marketdata/download_md.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ function download {
echo 'invalid token'
exit 1
fi
#В случае другой ошибки - просто напишем ее в консоль и выйдем
echo "unspecified error with code: ${response_code}"
exit 1
}

while read -r figi; do
Expand Down

0 comments on commit 1c21002

Please sign in to comment.