We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 111f02b + 651f1d9 commit e880197Copy full SHA for e880197
app/code/Magento/Catalog/Model/Product/Gallery/CreateHandler.php
@@ -420,6 +420,7 @@ protected function copyImage($file)
420
$destinationFile = $this->getUniqueFileName($file);
421
422
if (!$this->mediaDirectory->isFile($this->mediaConfig->getMediaPath($file))) {
423
+ // phpcs:ignore Magento2.Exceptions.DirectThrow
424
throw new \Exception();
425
}
426
@@ -437,6 +438,7 @@ protected function copyImage($file)
437
438
439
440
return str_replace('\\', '/', $destinationFile);
441
+ // phpcs:ignore Magento2.Exceptions.ThrowCatch
442
} catch (\Exception $e) {
443
$file = $this->mediaConfig->getMediaPath($file);
444
throw new \Magento\Framework\Exception\LocalizedException(
0 commit comments