Skip to content

Commit

Permalink
do report error
Browse files Browse the repository at this point in the history
  • Loading branch information
JerrySentry committed Nov 19, 2024
1 parent e8432b2 commit 0a625dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions graphql_api/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ def enter_operation_definition(
]
print("missing_variables", missing_variables)
if missing_variables:
raise GraphQLError(
f"Missing required variables: {', '.join(missing_variables)}",
nodes=[node],
self.report_error(
GraphQLError(
f"Missing required variables: {', '.join(missing_variables)}",
node,
)
)

return RequiredVariablesValidationRule
Expand Down

0 comments on commit 0a625dd

Please sign in to comment.