Skip to content

Commit 0cb1a7b

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: fix exception message to use vertexai when project is not provided.
PiperOrigin-RevId: 589189534
1 parent 1449344 commit 0cb1a7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google/cloud/aiplatform/initializer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,10 @@ def project(self) -> str:
274274
project_not_found_exception_str = (
275275
"Unable to find your project. Please provide a project ID by:"
276276
"\n- Passing a constructor argument"
277-
"\n- Using aiplatform.init()"
277+
"\n- Using vertexai.init()"
278278
"\n- Setting project using 'gcloud config set project my-project'"
279279
"\n- Setting a GCP environment variable"
280+
"\n- To create a Google Cloud project, please follow guidance at https://developers.google.com/workspace/guides/create-project"
280281
)
281282

282283
try:

0 commit comments

Comments
 (0)