From ee76ac8f93b2dae5268613b5b850cc9aa82622a3 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 12 Sep 2019 20:12:15 +0000 Subject: [PATCH] fix formatting issue of encoded urlSigned-off-by: Sam --- cli/command/image/build/context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/image/build/context.go b/cli/command/image/build/context.go index e9af9bd358..5344626e05 100644 --- a/cli/command/image/build/context.go +++ b/cli/command/image/build/context.go @@ -242,9 +242,9 @@ func getWithStatusError(url string) (resp *http.Response, err error) { body, err := ioutil.ReadAll(resp.Body) resp.Body.Close() 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