Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/code/Magento/Catalog/Model/ProductRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function get($sku, $editMode = false, $storeId = null, $forceReload = fal
$productId = $this->resourceModel->getIdBySku($sku);
if (!$productId) {
throw new NoSuchEntityException(
__("The product that was requested doesn't exist. Verify the product and try again.")
__("The product with the SKU: " . $sku . " was requested and doesn't exist. Verify the product and try again.")
);
}
if ($editMode) {
Expand Down Expand Up @@ -319,7 +319,7 @@ public function getById($productId, $editMode = false, $storeId = null, $forceRe
$product->load($productId);
if (!$product->getId()) {
throw new NoSuchEntityException(
__("The product that was requested doesn't exist. Verify the product and try again.")
__("The product with the ID: " . $productId ." was requested and doesn't exist. Verify the product and try again.")
);
}
$this->cacheProduct($cacheKey, $product);
Expand Down