Skip to content

Commit

Permalink
Fix typo in runtime type exception (graphql#1447)
Browse files Browse the repository at this point in the history
* Fix typo in runtime type exception

* fix test
  • Loading branch information
juliaqiuxy authored and mjmahone committed Aug 4, 2018
1 parent 0a9a533 commit 9f7faaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/execution/__tests__/abstract-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ describe('Execute: Handles execution of abstract types', () => {
'Abstract type FooInterface must resolve to an Object type at ' +
'runtime for field Query.foo with value "dummy", received "[]". ' +
'Either the FooInterface type should provide a "resolveType" ' +
'function or each possible types should provide an "isTypeOf" function.',
'function or each possible type should provide an "isTypeOf" function.',
locations: [{ line: 1, column: 3 }],
path: ['foo'],
},
Expand Down
2 changes: 1 addition & 1 deletion src/execution/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ function ensureValidRuntimeType(
`runtime for field ${info.parentType.name}.${info.fieldName} with ` +
`value ${inspect(result)}, received "${inspect(runtimeType)}". ` +
`Either the ${returnType.name} type should provide a "resolveType" ` +
'function or each possible types should provide an ' +
'function or each possible type should provide an ' +
'"isTypeOf" function.',
fieldNodes,
);
Expand Down

0 comments on commit 9f7faaa

Please sign in to comment.