Improve docs

This commit is contained in:
Andras Schmelczer 2022-07-13 12:44:57 +02:00
parent 446f1c021a
commit 1dcf5bb3af
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
6 changed files with 117 additions and 4 deletions

View file

@ -50,7 +50,9 @@ async def call_remote_great_ai_async(
try:
response.raise_for_status()
except Exception:
raise RemoteCallError("Unexpected status code")
raise RemoteCallError(
f"Unexpected status code, reason: {response.text}"
)
except Exception as e:
raise RemoteCallError from e