Skip to content

Commit 047662b

Browse files
author
Olexii Korshenko
committed
MAGETWO-32775: Prepare pull request for Checkout related modules MSC
1 parent 0937ada commit 047662b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/QuoteManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ public function assignCustomer($cartId, $customerId, $storeId)
167167
}
168168
try {
169169
$this->quoteRepository->getForCustomer($customerId);
170-
throw new StateException('Cannot assign customer to the given cart. Customer already has active cart.');
171170
} catch (\Magento\Framework\Exception\NoSuchEntityException $e) {
171+
throw new StateException('Cannot assign customer to the given cart. Customer already has active cart.');
172172
}
173173

174174
$quote->setCustomer($customer);

0 commit comments

Comments
 (0)