Skip to content

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

Add DiscountErrorCode to SALEOR_ERROR_CODE_ENUMS

IKarbowiak8019de86fbb2
diff --git a/saleor/graphql/core/utils/error_codes.py b/saleor/graphql/core/utils/error_codes.py
index ec590d64a0..b8474d8a37 100644
--- a/saleor/graphql/core/utils/error_codes.py
+++ b/saleor/graphql/core/utils/error_codes.py
@@ -3,6 +3,7 @@ from enum import Enum
from ....account.error_codes import AccountErrorCode
from ....checkout.error_codes import CheckoutErrorCode
from ....core.error_codes import ShopErrorCode
+from ....discount.error_codes import DiscountErrorCode
from ....extensions.error_codes import ExtensionsErrorCode
from ....giftcard.error_codes import GiftCardErrorCode
from ....menu.error_codes import MenuErrorCode
@@ -42,6 +43,7 @@ DJANGO_FORM_FIELDS_ERROR_CODES = [
SALEOR_ERROR_CODE_ENUMS = [
AccountErrorCode,
CheckoutErrorCode,
+ DiscountErrorCode,
ExtensionsErrorCode,
GiftCardErrorCode,
MenuErrorCode,