зеркало из https://github.com/microsoft/docker.git
Revert "Merge pull request #4151 from crosbymichael/improve-404-client-message"
This reverts commit6dd1bb9eb0
, reversing changes made to23aec9d7fc
. Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Родитель
518670f3d8
Коммит
d55cc64c4e
|
@ -2080,9 +2080,7 @@ func (cli *DockerCli) call(method, path string, data interface{}, passAuthInfo b
|
|||
return nil, -1, err
|
||||
}
|
||||
|
||||
if resp.StatusCode == 404 {
|
||||
return nil, resp.StatusCode, fmt.Errorf("Error: request for %s returned 404 Not Found for the api version", req.URL)
|
||||
} else if resp.StatusCode < 200 || resp.StatusCode >= 400 {
|
||||
if resp.StatusCode < 200 || resp.StatusCode >= 400 {
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
return nil, -1, err
|
||||
|
|
Загрузка…
Ссылка в новой задаче