Updated mongoid length check to log the string, not the name of the param

This commit is contained in:
Chomp
2025-10-11 10:08:21 +01:00
parent cda3511227
commit e813357a60
@@ -89,7 +89,7 @@ public readonly struct MongoId : IEquatable<MongoId>, IComparable<MongoId>
if (hex.Length != 24)
{
throw new ArgumentException("ObjectId must be a 24-character hex string.", nameof(hex));
throw new ArgumentException("ObjectId must be a 24-character hex string.", hex);
}
Span<byte> bytes = stackalloc byte[12];