Skip to content

Commit 6a99238

Browse files
committed
Improved batch error message
1 parent 69f7c26 commit 6a99238

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flask_graphql/graphqlview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def dispatch_request(self):
101101
elif not self.batch:
102102
raise HttpQueryError(
103103
400,
104-
'Batch requests are not allowed.'
104+
'Batch GraphQL requests are not enabled.'
105105
)
106106

107107

tests/test_graphqlview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def test_handles_batch_correctly_if_is_disabled(client):
381381

382382
assert response.status_code == 400
383383
assert response_json(response) == {
384-
'errors': [{'message': 'Batch requests are not allowed.'}]
384+
'errors': [{'message': 'Batch GraphQL requests are not enabled.'}]
385385
}
386386

387387

0 commit comments

Comments
 (0)