MCPcopy Index your code
hub / github.com/databus23/helm-diff / outputWithRichError

Function outputWithRichError

cmd/helpers.go:28–36  ·  view source on GitHub ↗
(cmd *exec.Cmd)

Source from the content-addressed store, hash-verified

26}
27
28func outputWithRichError(cmd *exec.Cmd) ([]byte, error) {
29 debugPrint("Executing %s", strings.Join(cmd.Args, " "))
30 output, err := cmd.Output()
31 var exitError *exec.ExitError
32 if errors.As(err, &exitError) {
33 return output, fmt.Errorf("%s: %s", exitError.Error(), string(exitError.Stderr))
34 }
35 return output, err
36}

Callers 7

TestOutputWithRichErrorFunction · 0.85
renderChartMethod · 0.85
getReleaseFunction · 0.85
getHooksFunction · 0.85
getRevisionFunction · 0.85
getChartFunction · 0.85
templateMethod · 0.85

Calls 1

debugPrintFunction · 0.85

Tested by 1

TestOutputWithRichErrorFunction · 0.68