Skip to content

Commit 852c02b

Browse files
authored
Add missed role to exc message
1 parent d622575 commit 852c02b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/sql/connector/instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ async def _perform_refresh(self) -> ConnectionInfo:
134134
f"refresh operation failed: {str(e)}"
135135
)
136136
if e.status == 403:
137-
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."
137+
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', 'Service Usage Consumer' roles have been granted to IAM principal."
138138
raise
139139

140140
except Exception as e:

0 commit comments

Comments
 (0)