Skip to content

Commit

Permalink
update error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Nov 7, 2023
1 parent 5ab893d commit 85e14a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arango/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def ping(self) -> int:
request = Request(method="get", endpoint="/_api/collection")
resp = self.send_request(request)
if resp.status_code in {401, 403}:
raise ServerConnectionError("bad username and/or password")
raise ServerConnectionError("bad username/password or token is expired")
if not resp.is_success: # pragma: no cover
raise ServerConnectionError(resp.error_message or "bad server response")
return resp.status_code
Expand Down

0 comments on commit 85e14a9

Please sign in to comment.