mirror of https://github.com/docker/cli.git
Merge pull request #2267 from thaJeztah/19.03_backport_fix_print
[19.03 backport] fix formatting issue of encoded url
This commit is contained in:
commit
4b4e4c2504
|
@ -243,9 +243,9 @@ func getWithStatusError(url string) (resp *http.Response, err error) {
|
||||||
body, err := ioutil.ReadAll(resp.Body)
|
body, err := ioutil.ReadAll(resp.Body)
|
||||||
resp.Body.Close()
|
resp.Body.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, msg+": error reading body")
|
return nil, errors.Wrapf(err, "%s: error reading body", msg)
|
||||||
}
|
}
|
||||||
return nil, errors.Errorf(msg+": %s", bytes.TrimSpace(body))
|
return nil, errors.Errorf("%s: %s", msg, bytes.TrimSpace(body))
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetContextFromLocalDir uses the given local directory as context for a
|
// GetContextFromLocalDir uses the given local directory as context for a
|
||||||
|
|
Loading…
Reference in New Issue