forked from TrueCloudLab/distribution
Merge pull request #428 from stevvooe/return-after-error
Return after error in handler
This commit is contained in:
commit
f40bf864b0
1 changed files with 1 additions and 0 deletions
|
@ -202,6 +202,7 @@ func (luh *layerUploadHandler) PutLayerUploadComplete(w http.ResponseWriter, r *
|
|||
ctxu.GetLogger(luh).Errorf("unknown error copying into upload: %v", err)
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
luh.Errors.Push(v2.ErrorCodeUnknown, err)
|
||||
return
|
||||
}
|
||||
|
||||
layer, err := luh.Upload.Finish(dgst)
|
||||
|
|
Loading…
Reference in a new issue