From 789ce7abf8ec46c30fd49be176304a8b220d7da5 Mon Sep 17 00:00:00 2001 From: jackwotherspoon Date: Wed, 27 Nov 2024 15:42:33 +0000 Subject: [PATCH] chore: update comment --- google/cloud/sql/connector/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google/cloud/sql/connector/client.py b/google/cloud/sql/connector/client.py index 4bdda2ef..61b77d56 100644 --- a/google/cloud/sql/connector/client.py +++ b/google/cloud/sql/connector/client.py @@ -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 @@ -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