diff --git a/internal/client/client.go b/internal/client/client.go index 3070ac32..60b9567c 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -771,6 +771,7 @@ func (c *Client) CheckCloudAPIIsEnabled() (bool, error) { ) } } + log.Warnf("\n\nPlease copy this message and create an issue.\n\n%s\n\n", errJson) return false, nil } return false, err.Error diff --git a/internal/cmd/login.go b/internal/cmd/login.go index 3d6aa94a..0c261998 100644 --- a/internal/cmd/login.go +++ b/internal/cmd/login.go @@ -73,6 +73,7 @@ func DoLogin(cfg *config.Config, projectID string) { // If the check fails (returns false), the CheckCloudAPIIsEnabled function // will have already printed instructions, so we can just exit. if !isChecked { + log.Fatal("Failed to check if Cloud AI API is enabled. If you encounter an error message, please create an issue.") return } }