This commit is contained in:
parent
c392bfe7eb
commit
69d6147582
@ -29,7 +29,7 @@ func QueueInfo(cfg *config.Config, target interface{}) error {
|
|||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
if resp.StatusCode != 200 {
|
if resp.StatusCode != 200 {
|
||||||
return errors.New(fmt.Sprintf("Error from queue info api: %s", err.Error()))
|
return errors.New(fmt.Sprintf("Error from queue info api: %s", resp.Status))
|
||||||
}
|
}
|
||||||
|
|
||||||
return json.NewDecoder(resp.Body).Decode(target)
|
return json.NewDecoder(resp.Body).Decode(target)
|
||||||
|
Loading…
Reference in New Issue
Block a user