Skip to content

Commit

Permalink
Update PaymentinformationManagement to throw error
Browse files Browse the repository at this point in the history
Rather than give mystic error message
  • Loading branch information
southerncomputer committed May 22, 2017
1 parent bdb0464 commit 79e8317
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ public function savePaymentInformationAndPlaceOrder(
\Magento\Quote\Api\Data\AddressInterface $billingAddress = null
) {
$this->savePaymentInformation($cartId, $paymentMethod, $billingAddress);
try {
//try {
$orderId = $this->cartManagement->placeOrder($cartId);
} catch (\Magento\Framework\Exception\LocalizedException $e) {
/*} catch (\Magento\Framework\Exception\LocalizedException $e) {
throw new CouldNotSaveException(
__($e->getMessage()),
$e
Expand All @@ -93,6 +93,7 @@ public function savePaymentInformationAndPlaceOrder(
$e
);
}
*/
return $orderId;
}

Expand Down

0 comments on commit 79e8317

Please sign in to comment.