Skip to content

Commit c151147

Browse files
committed
Don't swallow helm execution errors
These are otherwise hard to debug.
1 parent a2e9682 commit c151147

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/internal/builtins/HelmChartInflationGenerator.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ func (p *plugin) runHelmCommand(
161161
helm := p.h.GeneralConfig().HelmConfig.Command
162162
err = errors.WrapPrefixf(
163163
fmt.Errorf(
164-
"unable to run: '%s %s' with env=%s (is '%s' installed?)",
165-
helm, strings.Join(args, " "), env, helm),
164+
"unable to run: '%s %s' with env=%s (is '%s' installed?): %w",
165+
helm, strings.Join(args, " "), env, helm, err),
166166
stderr.String(),
167167
)
168168
}

0 commit comments

Comments
 (0)