Skip to content

Commit 6a08c1c

Browse files
committed
Fix issues with fieldName
1 parent f1bf791 commit 6a08c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/type/validate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ function validateTypeImplementsInterface(
580580
ifaceField.deprecationReason == null
581581
) {
582582
context.reportError(
583-
`Interface field ${iface.name}.${fieldName} is not deprecated, so ` +
584-
`implementation field ${type.name}.${fieldName} must not be deprecated.`,
583+
`Interface field ${iface.name}.${ifaceField.name} is not deprecated, so ` +
584+
`implementation field ${type.name}.${typeField.name} must not be deprecated.`,
585585
[
586586
getDeprecatedDirectiveNode(typeField.astNode),
587587
typeField.astNode?.type,

0 commit comments

Comments
 (0)