Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Make error response have same format
jxltomc22d49c80269
diff --git a/saleor/graphql/views.py b/saleor/graphql/views.pyindex a4571001b0..ac01f228b8 100644--- a/saleor/graphql/views.py+++ b/saleor/graphql/views.py@@ -88,7 +88,7 @@ class GraphQLView(View):query, variables, operation_name = self.get_graphql_params(request, data)except ValueError as e:- return str(e), 400+ return dict(errors=[self.format_error(e)]), 400execution_result = self.execute_graphql_request(request, query, variables, operation_name)