Change error message

This commit is contained in:
Alexander Sheiko 2019-09-16 11:57:41 +03:00
parent 1faa46f8d1
commit 70ededdd53

View file

@ -163,7 +163,7 @@ func FetchTweets(user string, last string) ([]*Tweet, error) {
} else if resp.StatusCode == http.StatusNotFound {
return nil, fmt.Errorf("user %s not found", user)
} else {
return nil, fmt.Errorf("status code: %d %s", resp.StatusCode, resp.Status)
return nil, fmt.Errorf("response status: %s", resp.Status)
}
return tweets, nil