For missing parts reply back as InvalidPart{}

This commit is contained in:
Harshavardhana
2015-07-13 19:29:32 -07:00
parent fdee527a4d
commit 7ae60a6d10
3 changed files with 10 additions and 1 deletions

View File

@@ -558,6 +558,8 @@ func (api Minio) CompleteMultipartUploadHandler(w http.ResponseWriter, req *http
}
case donut.InvalidUploadID:
writeErrorResponse(w, req, NoSuchUpload, acceptsContentType, req.URL.Path)
case donut.InvalidPart:
writeErrorResponse(w, req, InvalidPart, acceptsContentType, req.URL.Path)
case donut.InvalidPartOrder:
writeErrorResponse(w, req, InvalidPartOrder, acceptsContentType, req.URL.Path)
case donut.MissingDateHeader: