send error message to standard error out

This commit is contained in:
Maidul Islam
2023-02-14 13:43:40 -08:00
parent fba54ae0c6
commit 0c10bbb569
4 changed files with 15 additions and 27 deletions

View File

@@ -56,7 +56,7 @@ var initCmd = &cobra.Command{
workspaces := workspaceResponse.Workspaces
if len(workspaces) == 0 {
message := fmt.Sprintf("You don't have any projects created in Infisical. You must first create a project at %s", util.INFISICAL_TOKEN_NAME)
util.PrintMessageAndExit(message)
util.PrintErrorMessageAndExit(message)
}
var workspaceNames []string