mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-15 12:18:57 +00:00
Merge pull request #5099 from justinsb/dont_swallow_helm_errors
Don't swallow helm execution errors
This commit is contained in:
@@ -155,8 +155,8 @@ func (p *HelmChartInflationGeneratorPlugin) runHelmCommand(
|
|||||||
helm := p.h.GeneralConfig().HelmConfig.Command
|
helm := p.h.GeneralConfig().HelmConfig.Command
|
||||||
err = errors.WrapPrefixf(
|
err = errors.WrapPrefixf(
|
||||||
fmt.Errorf(
|
fmt.Errorf(
|
||||||
"unable to run: '%s %s' with env=%s (is '%s' installed?)",
|
"unable to run: '%s %s' with env=%s (is '%s' installed?): %w",
|
||||||
helm, strings.Join(args, " "), env, helm),
|
helm, strings.Join(args, " "), env, helm, err),
|
||||||
stderr.String(),
|
stderr.String(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,8 +161,8 @@ func (p *plugin) runHelmCommand(
|
|||||||
helm := p.h.GeneralConfig().HelmConfig.Command
|
helm := p.h.GeneralConfig().HelmConfig.Command
|
||||||
err = errors.WrapPrefixf(
|
err = errors.WrapPrefixf(
|
||||||
fmt.Errorf(
|
fmt.Errorf(
|
||||||
"unable to run: '%s %s' with env=%s (is '%s' installed?)",
|
"unable to run: '%s %s' with env=%s (is '%s' installed?): %w",
|
||||||
helm, strings.Join(args, " "), env, helm),
|
helm, strings.Join(args, " "), env, helm, err),
|
||||||
stderr.String(),
|
stderr.String(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user