We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6ec068 commit f94d254Copy full SHA for f94d254
graphene_django/views.py
@@ -11,7 +11,6 @@
11
from django.views.generic import View
12
from graphql import OperationType, get_operation_ast, parse, validate
13
from graphql.error import GraphQLError
14
-from graphql.error import format_error as format_graphql_error
15
from graphql.execution import ExecutionResult
16
17
from graphene import Schema
@@ -387,7 +386,7 @@ def get_graphql_params(request, data):
387
386
@staticmethod
388
def format_error(error):
389
if isinstance(error, GraphQLError):
390
- return format_graphql_error(error)
+ return error.formatted
391
392
return {"message": str(error)}
393
0 commit comments