From c0c04ffa3e34973df811bfbc2c9c7e480d666cd6 Mon Sep 17 00:00:00 2001 From: Yaroslav Rogoza Date: Wed, 8 May 2019 12:28:44 +0200 Subject: [PATCH] Return cart item error message as a string --- app/code/Magento/QuoteGraphQl/Model/Cart/UpdateCartItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/QuoteGraphQl/Model/Cart/UpdateCartItem.php b/app/code/Magento/QuoteGraphQl/Model/Cart/UpdateCartItem.php index ac9b464eb01b0..81ed4f23c4414 100644 --- a/app/code/Magento/QuoteGraphQl/Model/Cart/UpdateCartItem.php +++ b/app/code/Magento/QuoteGraphQl/Model/Cart/UpdateCartItem.php @@ -74,7 +74,7 @@ public function execute(Quote $cart, int $cartItemId, float $qty, array $customi if ($result->getHasError()) { throw new GraphQlInputException(__( 'Could not update cart item: %message', - ['message' => $result->getMessage()] + ['message' => $result->getMessage(true)] )); } }