Skip to content

Commit

Permalink
Fix JSON format exception attribution (#96040)
Browse files Browse the repository at this point in the history
See: 02ad981
  • Loading branch information
austindrenski authored Dec 15, 2023
1 parent aa99c60 commit 6d0a902
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private static Version ReadCore(ref Utf8JsonReader reader)
#if NETCOREAPP
if (!JsonHelpers.IsInRangeInclusive(reader.ValueLength, MinimumVersionLength, MaximumEscapedVersionLength))
{
ThrowHelper.ThrowFormatException(DataType.TimeSpan);
ThrowHelper.ThrowFormatException(DataType.Version);
}

Span<char> charBuffer = stackalloc char[MaximumEscapedVersionLength];
Expand Down

0 comments on commit 6d0a902

Please sign in to comment.