From 098486d221c04744630f35cb5085c8c19754c00d Mon Sep 17 00:00:00 2001 From: Jesse Simpson Date: Thu, 15 May 2025 20:38:01 -0400 Subject: [PATCH] fix: remove duplicate error message closes #30857 There are 2 ways the error message from any subcommand is printed: 1. through the debug log line that this PR removes 2. through the spf13/cobra package before the error type is returned to the caller. Since the spf13/cobra package already prints out the error, there is no use in redundantly printing out the error again within the debug log line. Signed-off-by: Jesse Simpson --- cmd/helm/helm.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go index eefce5158..0e912cda4 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/helm.go @@ -41,7 +41,6 @@ func main() { } if err := cmd.Execute(); err != nil { - slog.Debug("error", slog.Any("error", err)) switch e := err.(type) { case helmcmd.PluginError: os.Exit(e.Code)