Skip to content

Commit e051ba1

Browse files
committed
pkg/util/uuid: simplify error message in UUID UnmarshalBinary method
Updated the error message in the UnmarshalBinary method of the UUID struct to directly use the length of the data instead of a redaction function. Epic: CRDB-37533 Part of: CRDB-44885 Release note: None
1 parent e5d1c94 commit e051ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/uuid/codec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (u *UUID) UnmarshalBinary(data []byte) error {
169169
if len(data) != Size {
170170
return errors.Newf(
171171
"uuid: UUID must be exactly 16 bytes long, got %d bytes",
172-
redact.SafeInt(len(data)),
172+
len(data),
173173
)
174174
}
175175
copy(u[:], data)

0 commit comments

Comments
 (0)