(ctx context.Context, repo model.RepoConfig, ref string)
| 130 | msg += "; caller context: " + e.contextErr.Error() |
| 131 | } |
| 132 | return msg |
| 133 | } |
| 134 | |
| 135 | func (e *gitCommandError) Unwrap() []error { |
| 136 | if e == nil { |
| 137 | return nil |
| 138 | } |
| 139 | errs := make([]error, 0, 2) |
| 140 | if e.cause != nil { |
| 141 | errs = append(errs, e.cause) |
| 142 | } |
| 143 | if e.contextErr != nil { |
| 144 | errs = append(errs, e.contextErr) |
| 145 | } |
| 146 | return errs |
no test coverage detected