Pass through known errors
Signed-off-by: Troels Thomsen <troels@thomsen.io>
This commit is contained in:
parent
c0dcad3a48
commit
28be207bc0
4 changed files with 8 additions and 0 deletions
|
@ -239,6 +239,8 @@ func (buh *blobUploadHandler) PutBlobUploadComplete(w http.ResponseWriter, r *ht
|
|||
switch err := err.(type) {
|
||||
case distribution.ErrBlobInvalidDigest:
|
||||
buh.Errors = append(buh.Errors, v2.ErrorCodeDigestInvalid.WithDetail(err))
|
||||
case errcode.Error:
|
||||
buh.Errors = append(buh.Errors, err)
|
||||
default:
|
||||
switch err {
|
||||
case distribution.ErrAccessDenied:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue