diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 72fd9eaf..0a08ca37 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -36,7 +36,7 @@ }, { "ImportPath": "github.com/minio/objectstorage-go", - "Rev": "0aa0a2515ed0243fbfcdf05736bed10226b67a8b" + "Rev": "cb9c9c50825bf5c0758ed9e2f8b8a1414d21b3d2" }, { "ImportPath": "github.com/shiena/ansicolor", diff --git a/Godeps/_workspace/src/github.com/minio/objectstorage-go/api.go b/Godeps/_workspace/src/github.com/minio/objectstorage-go/api.go index 5ce0c30f..546ff1db 100644 --- a/Godeps/_workspace/src/github.com/minio/objectstorage-go/api.go +++ b/Godeps/_workspace/src/github.com/minio/objectstorage-go/api.go @@ -386,6 +386,9 @@ func (a *api) PutObject(bucket, object string, size uint64, data io.Reader) erro var inProgress bool var inProgressUploadID string for mpUpload := range a.listMultipartUploadsRecursive(bucket, object) { + if mpUpload.Err != nil { + return mpUpload.Err + } if mpUpload.Data.Key == object { inProgress = true inProgressUploadID = mpUpload.Data.UploadID diff --git a/Godeps/_workspace/src/github.com/minio/objectstorage-go/multipart.go b/Godeps/_workspace/src/github.com/minio/objectstorage-go/multipart.go index 817a2236..9a570648 100644 --- a/Godeps/_workspace/src/github.com/minio/objectstorage-go/multipart.go +++ b/Godeps/_workspace/src/github.com/minio/objectstorage-go/multipart.go @@ -78,7 +78,7 @@ func multiPartInRoutine(reader io.Reader, chunkSize uint64, skipParts []int, ch part := make([]byte, chunkSize) n, err = io.ReadFull(reader, part) if err != nil { - if err != io.EOF && err != io.ErrUnexpectedEOF { // catastrophic error + if err != io.EOF { // catastrophic error ch <- Part{ Data: nil, Err: err,