MCPcopy Create free account
hub / github.com/github/gh-aw / errWithOutput

Function errWithOutput

pkg/cli/env_command.go:571–577  ·  view source on GitHub ↗
(err error, out []byte)

Source from the content-addressed store, hash-verified

569}
570
571func errWithOutput(err error, out []byte) error {
572 trimmed := strings.TrimSpace(string(out))
573 if trimmed == "" {
574 return err
575 }
576 return fmt.Errorf("%w: %s", err, trimmed)
577}

Callers 2

upsertDefaultsVariableFunction · 0.85
deleteDefaultsVariableFunction · 0.85

Calls 1

ErrorfMethod · 0.45

Tested by

no test coverage detected