Skip to content

Commit

Permalink
fix: make error verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed Oct 3, 2023
1 parent b31a4a3 commit e836679
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/kubectl-testkube/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ var RootCmd = &cobra.Command{
}

serverCfg, err := client.GetConfig()
ui.WarnOnError("getting config", err)
if ui.Verbose && err != nil {
ui.Err(err)
}

if clientCfg.TelemetryEnabled != serverCfg.EnableTelemetry && err == nil {
if serverCfg.EnableTelemetry {
Expand Down

0 comments on commit e836679

Please sign in to comment.