Skip to content

Commit 17fed9b

Browse files
committed
Rephrase
1 parent 1bdb70a commit 17fed9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore.OpenApi/MemberInfoExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static TypeCategory GetTypeCategory(this MemberInfo source)
2222
}
2323
else
2424
{
25-
throw new NotSupportedException($"Cannot get the type category for members of type '{source.MemberType}' is not supported.");
25+
throw new NotSupportedException($"Member type '{source.MemberType}' must be a property or field.");
2626
}
2727

2828
if (memberType.IsValueType)

0 commit comments

Comments
 (0)