client: improve error messaging on connection failure (#398)

*iImprove error messaging on connection failure
This commit is contained in:
Parth Sareen
2025-01-16 13:55:17 -08:00
committed by GitHub
parent 12d6842f32
commit 967fd657f1
4 changed files with 46 additions and 9 deletions

View File

@@ -535,3 +535,6 @@ class ResponseError(Exception):
self.status_code = status_code
'HTTP status code of the response.'
def __str__(self) -> str:
return f'{self.error} (status code: {self.status_code})'