Skip to content

Commit

Permalink
Merge pull request #309 from Sild/handle-unspecified-errors
Browse files Browse the repository at this point in the history
handle case when server response with non-200 code
  • Loading branch information
b1ng0o authored Nov 30, 2022
2 parents 8ff992a + 1c21002 commit 4bae937
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 4bae937

Please sign in to comment.