Skip to content

Commit

Permalink
Merge pull request #8668 from magento-cloud/MCLOUD-11109
Browse files Browse the repository at this point in the history
MCLOUD-11109 Cloud deployments skipped less compilation errors
  • Loading branch information
2 parents 1b2e87c + b5af482 commit 881ca23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/Magento/Deploy/Service/DeployPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 881ca23

Please sign in to comment.