Change error message
This commit is contained in:
parent
1faa46f8d1
commit
70ededdd53
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue