Merge pull request #21 from dbrgn/errmsg_typo

Fixed wrong error message
This commit is contained in:
Pierce Lopez 2014-07-08 20:45:35 -04:00
commit 5205e9ad68

View File

@ -93,7 +93,7 @@ func apiRequest(req *http.Request) (*simplejson.Json, error) {
}
if resp.StatusCode != 200 {
log.Printf("got response code %d - %s", resp.StatusCode, body)
return nil, errors.New("api request returned 200 status code")
return nil, errors.New("api request returned non 200 status code")
}
data, err := simplejson.NewJson(body)
if err != nil {