| ... | ... |
@@ -2086,7 +2086,7 @@ func (cli *DockerCli) call(method, path string, data interface{}, passAuthInfo b
|
| 2086 | 2086 |
return nil, -1, err |
| 2087 | 2087 |
} |
| 2088 | 2088 |
if len(body) == 0 {
|
| 2089 |
- return nil, resp.StatusCode, fmt.Errorf("Error :%s", http.StatusText(resp.StatusCode))
|
|
| 2089 |
+ return nil, resp.StatusCode, fmt.Errorf("Error: request returned %s for api route and version %s, check if the server supports the requested api version", http.StatusText(resp.StatusCode), req.URL)
|
|
| 2090 | 2090 |
} |
| 2091 | 2091 |
return nil, resp.StatusCode, fmt.Errorf("Error: %s", bytes.TrimSpace(body))
|
| 2092 | 2092 |
} |