| Conditions | 1 |
| Total Lines | 9 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package afrikpay |
||
| 26 | func (r *Response) errorMessage() string { |
||
| 27 | var buf bytes.Buffer |
||
| 28 | buf.WriteString(strconv.Itoa(r.HTTPResponse.StatusCode)) |
||
| 29 | buf.WriteString(": ") |
||
| 30 | buf.WriteString(http.StatusText(r.HTTPResponse.StatusCode)) |
||
| 31 | buf.WriteString(", Body: ") |
||
| 32 | buf.Write(*r.Body) |
||
| 33 | |||
| 34 | return buf.String() |
||
| 35 | } |
||
| 36 |