Skip to content

Commit

Permalink
Don't swallow helm execution errors
Browse files Browse the repository at this point in the history
These are otherwise hard to debug.
  • Loading branch information
justinsb committed Mar 20, 2023
1 parent ce3e394 commit 5e768e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/internal/builtins/HelmChartInflationGenerator.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ func (p *plugin) 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(),
)
}
Expand Down

0 comments on commit 5e768e6

Please sign in to comment.