diff --git a/tweet.go b/tweet.go index aa6b033..cc3d73a 100644 --- a/tweet.go +++ b/tweet.go @@ -4,6 +4,7 @@ import ( "bytes" "encoding/json" "errors" + "fmt" "io" "net/url" "strconv" @@ -122,7 +123,8 @@ func (s *Scraper) CreateTweet(tweet NewTweet) (*Tweet, error) { return result, nil } - return nil, errors.New("tweet wasn't post") + raw, _ := json.Marshal(response) + return nil, fmt.Errorf("tweet wasn't post: %s", raw) } func (s *Scraper) DeleteTweet(tweetId string) error {