Skip to content

Commit 51c450b

Browse files
committed
MAGETWO-98980: [Backport for 2.1.x] Redirecting problem on storefront
- debug product
1 parent 6588ab4 commit 51c450b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Model/ProductRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ public function save(\Magento\Catalog\Api\Data\ProductInterface $product, $saveO
546546
} catch (LocalizedException $e) {
547547
throw $e;
548548
} catch (\Exception $e) {
549+
echo $e->getMessage(), PHP_EOL, $e->getTraceAsString();
549550
throw new \Magento\Framework\Exception\CouldNotSaveException(__('Unable to save product'));
550551
}
551552
unset($this->instances[$product->getSku()]);

0 commit comments

Comments
 (0)