From e8366790e1177930c69591a21169fbf459ad214d Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Tue, 3 Oct 2023 20:16:58 +0300 Subject: [PATCH] fix: make error verbose --- cmd/kubectl-testkube/commands/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/kubectl-testkube/commands/root.go b/cmd/kubectl-testkube/commands/root.go index c0b27a0cd0d..b871110c1e0 100644 --- a/cmd/kubectl-testkube/commands/root.go +++ b/cmd/kubectl-testkube/commands/root.go @@ -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 {