Quick dirty fix GetTweets
This commit is contained in:
parent
c181d32eee
commit
69c8b035ea
3 changed files with 51 additions and 54 deletions
2
util.go
2
util.go
|
|
@ -41,7 +41,7 @@ func getHTMLFromJSON(req *http.Request, field string) (*strings.Reader, error) {
|
|||
|
||||
htm, ok := ajaxJSON[field].(string)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("field not found in JSON")
|
||||
return nil, fmt.Errorf("field %s not found in JSON", field)
|
||||
}
|
||||
|
||||
return strings.NewReader(htm), nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue