Skip to content

Commit

Permalink
Merge pull request #952 from ulyanin/deployment-add-info-to-bad-respo…
Browse files Browse the repository at this point in the history
…nse-error

Add http response.text to deployment error reason
  • Loading branch information
thomasht86 authored Oct 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 0abea9c + 9448b57 commit a6525ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vespa/deployment.py
Original file line number Diff line number Diff line change
@@ -1161,7 +1161,7 @@ def get_connection_response_with_retry(
)
if response.status_code != 200:
raise HTTPError(
f"HTTP {response.status_code} error: {response.reason_phrase} for {path}"
f"HTTP {response.status_code} reason: {response.reason_phrase} error_text: {response.text} for {path}"
)
return response

0 comments on commit a6525ca

Please sign in to comment.