Skip to content

Commit c0c04ff

Browse files
committed
Return cart item error message as a string
1 parent 7d9a133 commit c0c04ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/UpdateCartItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function execute(Quote $cart, int $cartItemId, float $qty, array $customi
7474
if ($result->getHasError()) {
7575
throw new GraphQlInputException(__(
7676
'Could not update cart item: %message',
77-
['message' => $result->getMessage()]
77+
['message' => $result->getMessage(true)]
7878
));
7979
}
8080
}

0 commit comments

Comments
 (0)