Skip to content

Commit

Permalink
Print response for failed request
Browse files Browse the repository at this point in the history
  • Loading branch information
hestonhoffman committed Jul 25, 2024
1 parent cd52768 commit 06cf9d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions local/bin/py/synthetics_worker_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def get_data():
}
response = requests.get(url, headers=headers)
if response.status_code != 200:
print(response.status_code)
print(response.text)
raise Exception('Failed to get tags')

Check failure on line 23 in local/bin/py/synthetics_worker_version.py

View workflow job for this annotation

GitHub Actions / synthetics-worker-version

Failed to get tags
return response.json()

Expand Down

0 comments on commit 06cf9d2

Please sign in to comment.