diff --git a/pkg/services/object/put/validation.go b/pkg/services/object/put/validation.go index a3b62928..20f227b2 100644 --- a/pkg/services/object/put/validation.go +++ b/pkg/services/object/put/validation.go @@ -34,9 +34,9 @@ type validatingTarget struct { } var ( - // ErrExceedingMaxSize is returned when chunk payload size is greater than the length declared in header. + // ErrExceedingMaxSize is returned when payload size is greater than the limit. ErrExceedingMaxSize = errors.New("payload size is greater than the limit") - // ErrWrongPayloadSize is returned when payload size is greater than the limit. + // ErrWrongPayloadSize is returned when chunk payload size is greater than the length declared in header. ErrWrongPayloadSize = errors.New("wrong payload size") )