[#1972] node: Fix errors comments in the Put service

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-11-01 15:53:57 +03:00 committed by fyrchik
parent 7335a52f29
commit 51963abce7

View file

@ -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")
)