misc: update error message being displayed

This commit is contained in:
Sheen Capadngan
2025-06-03 20:06:42 +08:00
parent c0add863be
commit f3fb65fcc3
5 changed files with 19 additions and 13 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func GetAllFolders(params models.GetAllFoldersParameters) ([]models.SingleFolder
if params.WorkspaceId == "" {
workspaceFile, err := GetWorkSpaceFromFile()
if err != nil {
return nil, err
PrintErrorMessageAndExit("Please either run infisical init to connect to a project or pass in project id with --projectId flag")
}
params.WorkspaceId = workspaceFile.WorkspaceId
}