Skip to content

Commit 721a8fa

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-51718-uninstall-error-after-broken-install' into PR_Branch
2 parents 32e7ab6 + d009e3a commit 721a8fa

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

setup/src/Magento/Setup/Model/Installer.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,16 @@ public function uninstall()
10241024
{
10251025
$this->log->log('Starting Magento uninstallation:');
10261026

1027-
$this->cleanCaches();
1027+
try {
1028+
$this->cleanCaches();
1029+
} catch (\Exception $e) {
1030+
$this->log->log(
1031+
'Can\'t clear cache due to the following error: '
1032+
. $e->getMessage() . PHP_EOL
1033+
. 'To fully clean up your uninstallation, you must manually clear your cache.'
1034+
);
1035+
}
1036+
10281037
$this->cleanupDb();
10291038

10301039
$this->log->log('File system cleanup:');

0 commit comments

Comments
 (0)