|
@@ -71,7 +71,7 @@ func (c *Client) callWithRetry(serviceMethod string, args interface{}, ret inter
|
|
if resp.StatusCode != http.StatusOK {
|
|
if resp.StatusCode != http.StatusOK {
|
|
remoteErr, err := ioutil.ReadAll(resp.Body)
|
|
remoteErr, err := ioutil.ReadAll(resp.Body)
|
|
if err != nil {
|
|
if err != nil {
|
|
- return nil
|
|
|
|
|
|
+ return fmt.Errorf("Plugin Error: %s", err)
|
|
}
|
|
}
|
|
return fmt.Errorf("Plugin Error: %s", remoteErr)
|
|
return fmt.Errorf("Plugin Error: %s", remoteErr)
|
|
}
|
|
}
|