(body string, statusCode int)
| 93 | } |
| 94 | |
| 95 | func ErrorOperatorResponseUnknown(body string, statusCode int) error { |
| 96 | return errors.WithStack(&errors.Error{ |
| 97 | Kind: ErrOperatorResponseUnknown, |
| 98 | Message: fmt.Sprintf("unexpected response from operator (status code %d): %s", statusCode, body), |
| 99 | }) |
| 100 | } |
| 101 | |
| 102 | func ErrorOperatorStreamResponseUnknown(body string, statusCode int) error { |
| 103 | return errors.WithStack(&errors.Error{ |
no test coverage detected