Skip to content

Commit

Permalink
MAGETWO-53474: [Github] Caches Aren't Enabled by Default on RC1 with …
Browse files Browse the repository at this point in the history
…Composer when Upgrading via CLI

- Update based on review.
- Added returned error code to logged message.
  • Loading branch information
ark99 committed Jun 8, 2016
1 parent 2f9ccf0 commit 4c9841e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup/src/Magento/Setup/Console/Command/UpgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ private function enableCaches($objectManager, $output)

$write->delete($pathToCacheStatus);
if (isset($returnCode) && $returnCode > 0) {
$output->writeln('<error> Error occured during upgrade</error>');
$message = '<error> Error occured during upgrade. Error code: ' . $returnCode . '</error>';
$output->writeln($message);
return \Magento\Framework\Console\Cli::RETURN_FAILURE;
}
}
Expand Down

0 comments on commit 4c9841e

Please sign in to comment.