Skip to content

Commit

Permalink
fix: fix exception message to use vertexai when project is not provided.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 589189534
  • Loading branch information
vertex-sdk-bot authored and copybara-github committed Dec 8, 2023
1 parent 1449344 commit 0cb1a7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/cloud/aiplatform/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,10 @@ def project(self) -> str:
project_not_found_exception_str = (
"Unable to find your project. Please provide a project ID by:"
"\n- Passing a constructor argument"
"\n- Using aiplatform.init()"
"\n- Using vertexai.init()"
"\n- Setting project using 'gcloud config set project my-project'"
"\n- Setting a GCP environment variable"
"\n- To create a Google Cloud project, please follow guidance at https://developers.google.com/workspace/guides/create-project"
)

try:
Expand Down

0 comments on commit 0cb1a7b

Please sign in to comment.