(err error, out []byte)
| 569 | } |
| 570 | |
| 571 | func 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 | } |
no test coverage detected