Merge pull request #5099 from justinsb/dont_swallow_helm_errors

Don't swallow helm execution errors
This commit is contained in:
Kubernetes Prow Robot
2023-03-20 12:35:09 -07:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -155,8 +155,8 @@ func (p *HelmChartInflationGeneratorPlugin) runHelmCommand(
helm := p.h.GeneralConfig().HelmConfig.Command
err = errors.WrapPrefixf(
fmt.Errorf(
"unable to run: '%s %s' with env=%s (is '%s' installed?)",
helm, strings.Join(args, " "), env, helm),
"unable to run: '%s %s' with env=%s (is '%s' installed?): %w",
helm, strings.Join(args, " "), env, helm, err),
stderr.String(),
)
}