()
| 83 | } |
| 84 | |
| 85 | func (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 | |
| 92 | func (e *defaultsGHError) Unwrap() error { |
| 93 | return e.cause |
no outgoing calls