(msg string)
| 68 | } |
| 69 | |
| 70 | func newPartialResponseError(msg string) error { |
| 71 | return PartialResponseError{errctx.NewTextError( |
| 72 | msg, |
| 73 | 1, |
| 74 | errctx.WithStatusCode(http.StatusNotFound), |
| 75 | errctx.WithPublicMessage(msgSourceIsUnreachable), |
| 76 | errctx.WithShouldReport(false), |
| 77 | )} |
| 78 | } |
| 79 | |
| 80 | func newResponseStatusError(status int, body string) error { |
| 81 | var msg string |
no test coverage detected