Skip to content

Commit 686dacc

Browse files
chore: Apply suggestion
Co-authored-by: Copilot <[email protected]>
1 parent 1c68df7 commit 686dacc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4848,7 +4848,10 @@ string GetMemberValue()
48484848
{
48494849
if (string.IsNullOrWhiteSpace(memberValue))
48504850
{
4851-
throw new InvalidOperationException($"The property value is invalid for {memberName} of type {propertyType?.Name}");
4851+
throw new InvalidOperationException(
4852+
$"The property value is invalid for {memberName}" +
4853+
(propertyType != null ? $" of type {propertyType.Name}" : "")
4854+
);
48524855
}
48534856

48544857
return memberValue!;

0 commit comments

Comments
 (0)