From 6f0484f07448e1daa6ae20853ec0df897563c5a3 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Thu, 18 Jul 2024 18:29:39 -0400 Subject: [PATCH] update bot key message --- cli/packages/api/api.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cli/packages/api/api.go b/cli/packages/api/api.go index c7827cdc9..8f118651d 100644 --- a/cli/packages/api/api.go +++ b/cli/packages/api/api.go @@ -418,9 +418,8 @@ func CallGetRawSecretsV3(httpClient *resty.Client, request GetRawSecretsV3Reques } if response.IsError() && strings.Contains(response.String(), "bot_not_found_error") { - return GetRawSecretsV3Response{}, fmt.Errorf(`project with id %s is a legacy project type, - Legacy infisical instance: Please disable end to end encryption inside project settings. - New infisical instances/cloud: Please upgrade your project by navigating to secret overview page and click on upgrade. + return GetRawSecretsV3Response{}, fmt.Errorf(`Project with id %s is incompatible with your current CLI version. + If you're self-hosting, update your Infisical instance to the latest release. Then, upgrade your project by visiting its settings page. `, request.WorkspaceId) }