mirror of
https://github.com/rancher/os.git
synced 2025-09-02 15:24:32 +00:00
migrate to upstream libcompose in one and a half go
This commit is contained in:
3
vendor/github.com/docker/distribution/registry/client/errors.go
generated
vendored
3
vendor/github.com/docker/distribution/registry/client/errors.go
generated
vendored
@@ -8,7 +8,6 @@ import (
|
||||
"net/http"
|
||||
|
||||
"github.com/docker/distribution/registry/api/errcode"
|
||||
"github.com/docker/distribution/registry/api/v2"
|
||||
)
|
||||
|
||||
// UnexpectedHTTPStatusError is returned when an unexpected HTTP status is
|
||||
@@ -52,7 +51,7 @@ func handleErrorResponse(resp *http.Response) error {
|
||||
if resp.StatusCode == 401 {
|
||||
err := parseHTTPErrorResponse(resp.Body)
|
||||
if uErr, ok := err.(*UnexpectedHTTPResponseError); ok {
|
||||
return v2.ErrorCodeUnauthorized.WithDetail(uErr.Response)
|
||||
return errcode.ErrorCodeUnauthorized.WithDetail(uErr.Response)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user