Fix the errors found by go vet

Signed-off-by: rick <rick@jenkins-zh.cn>
This commit is contained in:
rick
2020-11-17 09:23:07 +08:00
parent e9f709057a
commit 4d19901025
3 changed files with 5 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ func (r *Registry) ImageManifest(image Image, token string) (*ImageManifest, err
log.Error(statusUnauthorized)
return nil, restful.NewError(resp.StatusCode, statusUnauthorized)
}
log.Error("got response: " + string(resp.StatusCode) + string(respBody))
log.Errorf("got response: statusCode is '%d', body is '%s'\n", resp.StatusCode, respBody)
return nil, restful.NewError(resp.StatusCode, "got image manifest failed")
}