Skip to content

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

Rename exception message

Damian W172b9b1e5c7e
diff --git a/saleor/core/exceptions.py b/saleor/core/exceptions.py
index 97d3bf54df..2102cadee5 100644
--- a/saleor/core/exceptions.py
+++ b/saleor/core/exceptions.py
@@ -28,6 +28,6 @@ class ReadOnlyException(Exception):
class ProductNotPublished(Exception):
def __init__(self, context=None):
- super().__init__("Can't create checkout with unpublished product.")
+ super().__init__("Can't add unpublished product.")
self.context = context
self.code = CheckoutErrorCode.PRODUCT_NOT_PUBLISHED