From c8adafcd54f1509c48c112176549949a89d9bc12 Mon Sep 17 00:00:00 2001 From: Vincent ENJALBERT Date: Tue, 30 Apr 2024 14:29:45 +0200 Subject: [PATCH] #38682 - Fix DeployPackage type error --- app/code/Magento/Deploy/Service/DeployPackage.php | 10 +++++++--- app/code/Magento/Deploy/i18n/en_US.csv | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/code/Magento/Deploy/Service/DeployPackage.php b/app/code/Magento/Deploy/Service/DeployPackage.php index 809680df9714c..8accb1767e66e 100644 --- a/app/code/Magento/Deploy/Service/DeployPackage.php +++ b/app/code/Magento/Deploy/Service/DeployPackage.php @@ -133,9 +133,13 @@ public function deployEmulated(Package $package, array $options, $skipLogging = try { $this->processFile($file, $package); } catch (ContentProcessorException $exception) { - $errorMessage = __('Compilation from source: ') - . $file->getSourcePath() - . PHP_EOL . $exception->getMessage() . PHP_EOL; + $errorMessage = __( + 'Compilation from source: %1', + $file->getSourcePath() + . PHP_EOL + . $exception->getMessage() + . PHP_EOL + ); $this->errorsCount++; $this->logger->critical($errorMessage); $package->deleteFile($file->getFileId()); diff --git a/app/code/Magento/Deploy/i18n/en_US.csv b/app/code/Magento/Deploy/i18n/en_US.csv index 3ad9fc7b73a92..79dd5d483d37a 100644 --- a/app/code/Magento/Deploy/i18n/en_US.csv +++ b/app/code/Magento/Deploy/i18n/en_US.csv @@ -12,7 +12,7 @@ "The configuration file has changed. Run app:config:import or setup:upgrade command to synchronize configuration.","The configuration file has changed. Run app:config:import or setup:upgrade command to synchronize configuration." "Wrong type specified: '%1'","Wrong type specified: '%1'" "Wrong queue type specified.","Wrong queue type specified." -"Compilation from source: ","Compilation from source: " +"Compilation from source: %1","Compilation from source: %1" "Wrong deploy strategy type: %1","Wrong deploy strategy type: %1" "Some error","Some error" "some message","some message"