diff --git a/client/object_put.go b/client/object_put.go index 318e1d0..b00cee8 100644 --- a/client/object_put.go +++ b/client/object_put.go @@ -187,7 +187,9 @@ func (x *ObjectWriter) Close() (*ResObjectPut, error) { return nil, x.ctxCall.err } - if !x.ctxCall.processResponse() { + x.ctxCall.processResponse() + + if x.ctxCall.err != nil { return nil, x.ctxCall.err }