diff --git a/plugins/CoreConsole/Commands/DevelopmentSyncProcessedSystemTests.php b/plugins/CoreConsole/Commands/DevelopmentSyncProcessedSystemTests.php
index b5b7d9d6571..4957e51b644 100644
--- a/plugins/CoreConsole/Commands/DevelopmentSyncProcessedSystemTests.php
+++ b/plugins/CoreConsole/Commands/DevelopmentSyncProcessedSystemTests.php
@@ -65,12 +65,15 @@ protected function updateCoreFiles(InputInterface $input, OutputInterface $outpu
$tar = new Tar($tarFile, 'bz2');
- $tar->extract($targetDir);
-
- $this->writeSuccessMessage($output, array(
- 'All processed system test results were copied to ' . $targetDir . '',
- 'Compare them with the expected test results and commit them if needed.'
- ));
+ if ($tar->extract($targetDir)) {
+ $this->writeSuccessMessage($output, array(
+ 'All processed system test results were copied to ' . $targetDir . '',
+ 'Compare them with the expected test results and commit them if needed.'
+ ));
+ } else {
+ $output->write('' . $tar->errorInfo() . '.');
+ $output->writeln(' Check that you have the PHP bz2 extension installed and try again.');
+ }
unlink($tarFile);
}
@@ -100,7 +103,14 @@ protected function updatePluginsFiles(InputInterface $input, OutputInterface $ou
$extractionTarget = $tmpDir . '/artifacts';
Filesystem::mkdir($extractionTarget);
- $tar->extract($extractionTarget);
+
+ $success = $tar->extract($extractionTarget);
+ if (! $success) {
+ $output->write('' . $tar->errorInfo() . '.');
+ $output->writeln(' Check that you have the PHP bz2 extension installed and try again.');
+ unlink($tarFile);
+ return;
+ }
$artifacts = Filesystem::globr($extractionTarget, '*~~*');