diff --git a/app/code/Magento/Deploy/Service/DeployPackage.php b/app/code/Magento/Deploy/Service/DeployPackage.php index 2bc1a3916ed5c..809680df9714c 100644 --- a/app/code/Magento/Deploy/Service/DeployPackage.php +++ b/app/code/Magento/Deploy/Service/DeployPackage.php @@ -8,6 +8,7 @@ use Magento\Deploy\Package\Package; use Magento\Deploy\Package\PackageFile; use Magento\Framework\App\State as AppState; +use Magento\Framework\Exception\LocalizedException; use Magento\Framework\Locale\ResolverInterface as LocaleResolver; use Magento\Framework\View\Asset\ContentProcessorException; use Magento\Deploy\Console\InputValidator; @@ -138,6 +139,7 @@ public function deployEmulated(Package $package, array $options, $skipLogging = $this->errorsCount++; $this->logger->critical($errorMessage); $package->deleteFile($file->getFileId()); + throw new LocalizedException($errorMessage); } catch (\Exception $exception) { $this->logger->critical( 'Compilation from source ' . $file->getSourcePath() . ' failed' . PHP_EOL . (string)$exception