Skip to content

Commit d4e71fb

Browse files
committed
MAGETWO-33813: Replace Magento\Framework\Model\Exception to LocalizedException
1 parent 44a9170 commit d4e71fb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/code/Magento/Catalog/Helper/Product/Composite.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,8 @@ public function renderConfigureResult(\Magento\Framework\Object $configureResult
153153
$currentStoreId = $this->_storeManager->getStore()->getId();
154154
}
155155

156-
try {
157-
$product = $this->productRepository->getById($configureResult->getProductId(), false, $currentStoreId);
158-
} catch (NoSuchEntityException $e) {
159-
throw new \Magento\Framework\Exception\LocalizedException(__('The product is not loaded.'), [], $e);
160-
}
156+
$product = $this->productRepository->getById($configureResult->getProductId(), false, $currentStoreId);
157+
161158
$this->_coreRegistry->register('current_product', $product);
162159
$this->_coreRegistry->register('product', $product);
163160

0 commit comments

Comments
 (0)