Skip to content

Commit cf43c02

Browse files
committed
neofs: Update error messages
Current texts are misleading a bit. Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
1 parent 8d570e4 commit cf43c02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/neofs/neofs.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func (x *NeoFS) CreateObject(ctx context.Context, prm layer.PrmObjectCreate) (oi
358358
if ok {
359359
return oid.ID{}, fmt.Errorf("%w: %s", layer.ErrAccessDenied, reason)
360360
}
361-
return oid.ID{}, fmt.Errorf("save object via connection pool: %w", err)
361+
return oid.ID{}, fmt.Errorf("put init: %w", err)
362362
}
363363

364364
data := x.buffers.Get()
@@ -368,7 +368,7 @@ func (x *NeoFS) CreateObject(ctx context.Context, prm layer.PrmObjectCreate) (oi
368368
x.buffers.Put(chunk)
369369

370370
if err != nil {
371-
return oid.ID{}, fmt.Errorf("read payload chunk: %w", err)
371+
return oid.ID{}, fmt.Errorf("copy payload with buffer: %w", err)
372372
}
373373

374374
if err = writer.Close(); err != nil {

0 commit comments

Comments
 (0)