Remove unused and duplicate error types

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2015-05-15 16:34:00 -07:00
parent 98836d6267
commit 94e375c5d1
3 changed files with 3 additions and 33 deletions

View file

@ -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)
}