Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Return errors directly in clean_lines

Unknown763286aecbf7
diff --git a/saleor/graphql/order/mutations/fulfillments.py b/saleor/graphql/order/mutations/fulfillments.py
index 31eabb5505..50117b5d6e 100644
--- a/saleor/graphql/order/mutations/fulfillments.py
+++ b/saleor/graphql/order/mutations/fulfillments.py
@@ -68,6 +68,9 @@ class FulfillmentCreate(BaseMutation):
@classmethod
def clean_lines(cls, order_lines, quantities, errors):
+ if errors:
+ return errors
+
for order_line, quantity in zip(order_lines, quantities):
if quantity <= 0:
cls.add_error(