Skip to content

Commit 64f4ce2

Browse files
authored
initial (#197)
1 parent 629cb31 commit 64f4ce2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spacy_llm/backends/rest/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ def _call_api(attempt: int) -> Optional[requests.Response]:
127127
if _HTTPRetryErrorCodes.has(response.status_code):
128128
raise ConnectionError(
129129
f"API could not be reached after {(time.time() - start_time):.3f} seconds in total and attempting to "
130-
f"connect {self._max_tries} times. Check your network connection and the API's availability."
130+
f"connect {self._max_tries} times. Check your network connection and the API's availability.\n"
131+
f"{response.status_code}\t{response.reason}"
131132
)
132133

133134
return response

0 commit comments

Comments
 (0)