client/put_transformer: Fix error handling #210

Merged
fyrchik merged 1 commit from achuprov/frostfs-sdk-go:bugfix/put_ignoring_errors into master 2024-03-20 09:47:30 +00:00

View file

@ -47,6 +47,10 @@ func (x *objectWriterTransformer) WritePayloadChunk(ctx context.Context, chunk [
}
func (x *objectWriterTransformer) Close(ctx context.Context) (*ResObjectPut, error) {
if x.err != nil {
return nil, x.err
}
ai, err := x.ot.Close(ctx)
if err != nil {
return nil, err