Skip to content

Commit 9f7faaa

Browse files
juliaqiuxymjmahone
authored andcommitted
Fix typo in runtime type exception (#1447)
* Fix typo in runtime type exception * fix test
1 parent 0a9a533 commit 9f7faaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/execution/__tests__/abstract-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ describe('Execute: Handles execution of abstract types', () => {
413413
'Abstract type FooInterface must resolve to an Object type at ' +
414414
'runtime for field Query.foo with value "dummy", received "[]". ' +
415415
'Either the FooInterface type should provide a "resolveType" ' +
416-
'function or each possible types should provide an "isTypeOf" function.',
416+
'function or each possible type should provide an "isTypeOf" function.',
417417
locations: [{ line: 1, column: 3 }],
418418
path: ['foo'],
419419
},

src/execution/execute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ function ensureValidRuntimeType(
10481048
`runtime for field ${info.parentType.name}.${info.fieldName} with ` +
10491049
`value ${inspect(result)}, received "${inspect(runtimeType)}". ` +
10501050
`Either the ${returnType.name} type should provide a "resolveType" ` +
1051-
'function or each possible types should provide an ' +
1051+
'function or each possible type should provide an ' +
10521052
'"isTypeOf" function.',
10531053
fieldNodes,
10541054
);

0 commit comments

Comments
 (0)