Skip to content

Commit

Permalink
[#1319] services/object_manager: Fix error message
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
  • Loading branch information
fyrchik authored and cthulhu-rider committed Apr 29, 2022
1 parent 057d534 commit 1219ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/object_manager/transformer/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 1219ff8

Please sign in to comment.