Skip to content

Commit

Permalink
Print error message to terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
banjoh committed Sep 26, 2023
1 parent c1f3cfe commit 43bdb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kots/cli/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 43bdb66

Please sign in to comment.