Skip to content

Commit

Permalink
Fix compile errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-tsirpanis committed Feb 6, 2025
1 parent 0325ce1 commit b27ac49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ internal static RuntimeType GetTypeReferencedByCustomAttribute(string typeName,
{
if (_throwOnError)
{
throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName), typeName: escapedTypeName);
throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveType, escapedTypeName)) { TypeName = escapedTypeName };
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ internal partial struct TypeNameResolver
if (_throwOnError)
{
throw new TypeLoadException(SR.Format(SR.TypeLoad_ResolveNestedType,
nestedTypeNames[i], (i > 0) ? nestedTypeNames[i - 1] : TypeName.Unescape(escapedTypeName)));
nestedTypeNames[i], (i > 0) ? nestedTypeNames[i - 1] : TypeName.Unescape(escapedTypeName)))
{ TypeName = parsedName.FullName };
}
return null;
Expand Down

0 comments on commit b27ac49

Please sign in to comment.