Fixed wrong error message

This commit is contained in:
Danilo Bargen 2014-07-08 14:07:05 +02:00
parent 14e845d021
commit cfe186d6cb

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 {