Skip to content

Commit 9c50094

Browse files
committed
Improve error message for missing required argument in field or directive
Replicates graphql/graphql-js@82851fc
1 parent 5d219e1 commit 9c50094

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Pipfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

graphql/validation/rules/provided_required_arguments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
def missing_field_arg_message(field_name: str, arg_name: str, type_: str) -> str:
2525
return (
2626
f"Field '{field_name}' argument '{arg_name}'"
27-
f" of type '{type_}' is required but not provided."
27+
f" of type '{type_}' is required, but it was not provided."
2828
)
2929

3030

@@ -33,7 +33,7 @@ def missing_directive_arg_message(
3333
) -> str:
3434
return (
3535
f"Directive '@{directive_name}' argument '{arg_name}'"
36-
f" of type '{type_}' is required but not provided."
36+
f" of type '{type_}' is required, but it was not provided."
3737
)
3838

3939

0 commit comments

Comments
 (0)