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

Method Error

pkg/cli/env_command.go:85–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85func (e *defaultsGHError) Error() string {
86 if strings.TrimSpace(e.output) == "" {
87 return fmt.Sprintf("%s failed (exit %d): %v", e.command, e.exitCode, e.cause)
88 }
89 return fmt.Sprintf("%s failed (exit %d): %s", e.command, e.exitCode, strings.TrimSpace(e.output))
90}
91
92func (e *defaultsGHError) Unwrap() error {
93 return e.cause

Calls

no outgoing calls