Remove unused and duplicate error types
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
296a8415b9
commit
e0e13209d8
3 changed files with 3 additions and 33 deletions
|
@ -28,7 +28,7 @@ type httpBlobUpload struct {
|
|||
|
||||
func (hbu *httpBlobUpload) handleErrorResponse(resp *http.Response) error {
|
||||
if resp.StatusCode == http.StatusNotFound {
|
||||
return &BlobUploadNotFoundError{Location: hbu.location}
|
||||
return distribution.ErrBlobUploadUnknown
|
||||
}
|
||||
return handleErrorResponse(resp)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue