commit
7dbe35176d
1 changed files with 0 additions and 7 deletions
|
@ -53,13 +53,6 @@ func handleErrorResponse(resp *http.Response) error {
|
||||||
err := parseHTTPErrorResponse(resp.Body)
|
err := parseHTTPErrorResponse(resp.Body)
|
||||||
if uErr, ok := err.(*UnexpectedHTTPResponseError); ok {
|
if uErr, ok := err.(*UnexpectedHTTPResponseError); ok {
|
||||||
return v2.ErrorCodeUnauthorized.WithDetail(uErr.Response)
|
return v2.ErrorCodeUnauthorized.WithDetail(uErr.Response)
|
||||||
/*
|
|
||||||
return &errcode.Error{
|
|
||||||
Code: v2.ErrorCodeUnauthorized,
|
|
||||||
Message: v2.ErrorCodeUnauthorized.Message(),
|
|
||||||
Detail: uErr.Response,
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue