Skip to content

Commit 4dc8064

Browse files
committed
ACP2E-3942: Error in mapping message to error code when placing order via GraphQL
1 parent e7856d4 commit 4dc8064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function execute(string $cartHash, ?int $customerId, int $storeId): Quote
5757
try {
5858
$cart = $this->getCartForUser->execute($cartHash, $customerId, $storeId);
5959
} catch (NoSuchEntityException $e) {
60-
throw new GraphQlNoSuchEntityException(__($e->getMessage()), $e);
60+
throw new GraphQlNoSuchEntityException(__($e->getMessage()), $e, $e->getCode());
6161
}
6262
$this->checkoutAllowance->execute($cart);
6363

0 commit comments

Comments
 (0)