Skip to content

Commit

Permalink
chore: update typo in 403 error message (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
averikitsch authored Jun 14, 2024
1 parent 148d30d commit 2eeffee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google/cloud/sql/connector/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async def _perform_refresh(self) -> ConnectionInfo:
f"refresh operation failed: {str(e)}"
)
if e.status == 403:
e.message = "Forbidden: Authenticated IAM principal does not seeem authorized to make API request. Verify 'Cloud SQL Admin API' is enabled within your GCP project and 'Cloud SQL Client' role has been granted to IAM principal."
e.message = "Forbidden: Authenticated IAM principal does not seem authorized to make API request. Verify 'Cloud SQL Admin API' is enabled within your GCP project and 'Cloud SQL Client' role has been granted to IAM principal."
raise

except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ async def test_ClientResponseError(
assert e.status == 403
assert (
e.message == "Forbidden: Authenticated IAM principal does not "
"seeem authorized to make API request. Verify "
"seem authorized to make API request. Verify "
"'Cloud SQL Admin API' is enabled within your GCP project and "
"'Cloud SQL Client' role has been granted to IAM principal."
)
Expand Down

0 comments on commit 2eeffee

Please sign in to comment.