Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Return errors directly in clean_lines
Unknown763286aecbf7
diff --git a/saleor/graphql/order/mutations/fulfillments.py b/saleor/graphql/order/mutations/fulfillments.pyindex 31eabb5505..50117b5d6e 100644--- a/saleor/graphql/order/mutations/fulfillments.py+++ b/saleor/graphql/order/mutations/fulfillments.py@@ -68,6 +68,9 @@ class FulfillmentCreate(BaseMutation):@classmethoddef 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(