Skip to content

Commit

Permalink
fix an exception message issue in MrwSerializationTypeDefinition (mic…
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcturusZhang authored and sarangan12 committed Sep 16, 2024
1 parent dedf923 commit 494cbe3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ var t when ValueTypeIsNumber(t) =>
SerializeBinaryData(valueType, serializationFormat, value),
var t when t == typeof(Stream) =>
_utf8JsonWriterSnippet.WriteBinaryData(BinaryDataSnippets.FromStream(value, false)),
_ => throw new NotSupportedException($"Type {nameof(valueType)} serialization is not supported.")
_ => throw new NotSupportedException($"Type {valueType} serialization is not supported.")
};
}

Expand Down

0 comments on commit 494cbe3

Please sign in to comment.