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