Skip to content

Commit 21e3d87

Browse files
committed
Follow up to #883
1 parent 508aa3a commit 21e3d87

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/execution/__tests__/executor-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ describe('Execute: Handles basic execution tasks', () => {
637637
});
638638
});
639639

640-
it('throws if no op name is provided with multiple operations', async () => {
640+
it('errors if no op name is provided with multiple operations', async () => {
641641
const doc = 'query Example { a } query OtherExample { a }';
642642
const data = { a: 'b' };
643643
const ast = parse(doc);
@@ -663,7 +663,7 @@ describe('Execute: Handles basic execution tasks', () => {
663663
});
664664
});
665665

666-
it('throws if unknown operation name is provided', async () => {
666+
it('errors if unknown operation name is provided', async () => {
667667
const doc = 'query Example { a } query OtherExample { a }';
668668
const ast = parse(doc);
669669
const schema = new GraphQLSchema({

src/execution/execute.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ export function execute(
154154
/* eslint-enable no-param-reassign, no-redeclare */
155155
}
156156

157-
// If a valid context cannot be created due to incorrect arguments,
158-
// this will throw an error.
157+
// If arguments are missing or incorrect, throw an error.
159158
assertValidExecutionArguments(
160159
schema,
161160
document,

0 commit comments

Comments
 (0)