From 43bdb6686c86219eff49a8c3237aae727ecf6003 Mon Sep 17 00:00:00 2001 From: Evans Mungai Date: Tue, 26 Sep 2023 12:04:02 +0100 Subject: [PATCH] Print error message to terminal --- cmd/kots/cli/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kots/cli/install.go b/cmd/kots/cli/install.go index 3fb564bfa1..84170c7dbc 100644 --- a/cmd/kots/cli/install.go +++ b/cmd/kots/cli/install.go @@ -453,7 +453,7 @@ func InstallCmd() *cobra.Command { perr := preflightError{} if errors.As(err, &perr) { log.FinishSpinner() // We succeeded waiting for the results. Don't finish with an error - log.Errorf("Preflight checks contain warnings or errors. The application was not deployed") + log.Errorf(perr.Msg) print.PreflightErrors(log, perr.Results) cmd.SilenceErrors = true // Stop Cobra from printing the error, we format the message ourselves } else {