diff --git a/cli/cmd/plugin/unmanaged-cluster/cmd/configure.go b/cli/cmd/plugin/unmanaged-cluster/cmd/configure.go index 7e7341a725..226d0b503e 100644 --- a/cli/cmd/plugin/unmanaged-cluster/cmd/configure.go +++ b/cli/cmd/plugin/unmanaged-cluster/cmd/configure.go @@ -69,7 +69,7 @@ func configure(cmd *cobra.Command, args []string) error { err = config.RenderConfigToFile(fileName, scConfig) if err != nil { - log.Errorf("Failed to write configuration file: %s", err.Error()) + log.Errorf("Failed to write configuration file: %s\n", err.Error()) return nil } log.Infof("Wrote configuration file to: %s\n", fileName) diff --git a/cli/cmd/plugin/unmanaged-cluster/cmd/create.go b/cli/cmd/plugin/unmanaged-cluster/cmd/create.go index dd1dde8a73..ee39ebc66b 100644 --- a/cli/cmd/plugin/unmanaged-cluster/cmd/create.go +++ b/cli/cmd/plugin/unmanaged-cluster/cmd/create.go @@ -106,7 +106,7 @@ func create(cmd *cobra.Command, args []string) error { tm := tanzu.New(log) err = tm.Deploy(clusterConfig) if err != nil { - log.Error(err.Error()) + log.Errorf("%s\n", err.Error()) return nil } diff --git a/cli/cmd/plugin/unmanaged-cluster/cmd/list.go b/cli/cmd/plugin/unmanaged-cluster/cmd/list.go index afee8cd63d..87596662bf 100644 --- a/cli/cmd/plugin/unmanaged-cluster/cmd/list.go +++ b/cli/cmd/plugin/unmanaged-cluster/cmd/list.go @@ -42,7 +42,7 @@ func list(cmd *cobra.Command, args []string) error { tClient := tanzu.New(log) clusters, err := tClient.List() if err != nil { - return fmt.Errorf("unable to list clusters. Error: %s", err.Error()) + return fmt.Errorf("unable to list clusters. Error: %s\n", err.Error()) } t := component.NewOutputWriter(cmd.OutOrStdout(), "table", "NAME", "PROVIDER")