From e813357a6096d283b66e7480370556f4cd2bbb79 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sat, 11 Oct 2025 10:08:21 +0100 Subject: [PATCH] Updated mongoid length check to log the string, not the name of the param --- Libraries/SPTarkov.Server.Core/Models/Common/MongoId.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Models/Common/MongoId.cs b/Libraries/SPTarkov.Server.Core/Models/Common/MongoId.cs index 3595d32f..2b133f01 100644 --- a/Libraries/SPTarkov.Server.Core/Models/Common/MongoId.cs +++ b/Libraries/SPTarkov.Server.Core/Models/Common/MongoId.cs @@ -89,7 +89,7 @@ public readonly struct MongoId : IEquatable, IComparable 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 bytes = stackalloc byte[12];