Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon committed Nov 27, 2024
1 parent 2ea9bf3 commit 789ce7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/sql/connector/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def _get_metadata(
try:
ret_dict = await resp.json()
if resp.status >= 400:
# if detailed error message is in json response, use as message
# if detailed error message is in json response, use as error message
message = ret_dict.get("error", {}).get("message")
if message:
resp.reason = message
Expand Down Expand Up @@ -213,7 +213,7 @@ async def _get_ephemeral(
try:
ret_dict = await resp.json()
if resp.status >= 400:
# if detailed error message is in json response, use as message
# if detailed error message is in json response, use as error message
message = ret_dict.get("error", {}).get("message")
if message:
resp.reason = message
Expand Down

0 comments on commit 789ce7a

Please sign in to comment.