Don't swallow helm execution errors

These are otherwise hard to debug.
This commit is contained in:
justinsb
2023-03-20 13:19:55 +00:00
parent a2e9682002
commit c151147258
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(),
)
}