Skip to content

Commit

Permalink
Fix message when no DAM members match (dotnet#109717)
Browse files Browse the repository at this point in the history
`memberTypesFromAttribute` is typed as `int` so the ToString gives us a number instead of enum name. Noticed by accident.
  • Loading branch information
MichalStrehovsky authored Nov 12, 2024
1 parent 13f093e commit b7da1fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static MetadataType Linkerify(TypeDesc type)
metadataManager.Logger.LogWarning(
new MessageOrigin(entity),
DiagnosticId.NoMembersResolvedForMemberSignatureOrType,
memberTypesFromAttribute.ToString(),
((DynamicallyAccessedMemberTypes)memberTypesFromAttribute).ToString(),
targetType.GetDisplayName());
return;
}
Expand Down

0 comments on commit b7da1fe

Please sign in to comment.