Skip to content

Commit d1879b1

Browse files
craig[bot]Abhinav1299
andcommitted
Merge #149190
149190: pkg/util/uuid: simplify error message in UUID UnmarshalBinary method r=Abhinav1299 a=Abhinav1299 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 Co-authored-by: Abhinav1299 <[email protected]>
2 parents 81c8bc6 + e051ba1 commit d1879b1

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)