diff --git a/app/code/Magento/Catalog/Model/ProductRepository.php b/app/code/Magento/Catalog/Model/ProductRepository.php index 4343917f250a..b3fad4127305 100644 --- a/app/code/Magento/Catalog/Model/ProductRepository.php +++ b/app/code/Magento/Catalog/Model/ProductRepository.php @@ -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) { @@ -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);