Quick dirty fix GetTweets

This commit is contained in:
Alexander Sheiko 2020-09-19 00:57:03 +03:00
parent c181d32eee
commit 69c8b035ea
3 changed files with 51 additions and 54 deletions

View file

@ -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