[#1319] services/object_manager: Fix error message

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-04-28 10:27:34 +03:00 committed by LeL
parent 057d53459b
commit 1219ff89d4

View file

@ -130,7 +130,7 @@ func payloadHashersForObject(obj *object.Object) []*payloadChecksumHasher {
hasher: sha256.New(),
checksumWriter: func(cs []byte) {
if ln := len(cs); ln != sha256.Size {
panic(fmt.Sprintf("wrong checksum length: expected %d, has %d", ln, sha256.Size))
panic(fmt.Sprintf("wrong checksum length: expected %d, has %d", sha256.Size, ln))
}
csSHA := [sha256.Size]byte{}