feat: updated bot not found error message

This commit is contained in:
=
2024-07-18 01:46:28 +05:30
parent 1d6d424c91
commit 1f6c33bdb8
3 changed files with 11 additions and 7 deletions

View File

@@ -418,7 +418,10 @@ 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, please navigate to project settings and disable end to end encryption then try again", request.WorkspaceId)
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.
`, request.WorkspaceId)
}
if response.IsError() {