Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 0a625dd

Browse files
committed
do report error
1 parent e8432b2 commit 0a625dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

graphql_api/validation.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ def enter_operation_definition(
5050
]
5151
print("missing_variables", missing_variables)
5252
if missing_variables:
53-
raise GraphQLError(
54-
f"Missing required variables: {', '.join(missing_variables)}",
55-
nodes=[node],
53+
self.report_error(
54+
GraphQLError(
55+
f"Missing required variables: {', '.join(missing_variables)}",
56+
node,
57+
)
5658
)
5759

5860
return RequiredVariablesValidationRule

0 commit comments

Comments
 (0)