(err error)
| 883 | } |
| 884 | |
| 885 | func wrapExitErr(err error) error { |
| 886 | if err == nil { |
| 887 | return nil |
| 888 | } |
| 889 | |
| 890 | var exitErr *exec.ExitError |
| 891 | if xerrors.As(err, &exitErr) { |
| 892 | return xerrors.Errorf("output: %s\n\n%w", bytes.TrimSpace(exitErr.Stderr), exitErr) |
| 893 | } |
| 894 | return err |
| 895 | } |
no test coverage detected