test: add tests for errors

This commit is contained in:
mehanizm
2020-04-17 23:12:07 +03:00
parent bc37bb1eb4
commit 4630f5f396
4 changed files with 38 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ type HTTPClientError struct {
}
func (e *HTTPClientError) Error() string {
return fmt.Sprintf("status %d: err %v", e.StatusCode, e.Err)
return fmt.Sprintf("status %d, err: %v", e.StatusCode, e.Err)
}
func makeHTTPClientError(url string, resp *http.Response) error {