1
0
Fork 0

Avoid sending install notifications in dry-run mode

pull/4539/head
Jordi Boggiano 2015-10-26 15:01:06 +00:00
parent 3d9daea6a0
commit 4f934d9282
1 changed files with 6 additions and 2 deletions

View File

@ -234,11 +234,15 @@ class Installer
return $res;
}
} catch (\Exception $e) {
if (!$this->dryRun) {
$this->installationManager->notifyInstalls($this->io);
}
throw $e;
}
if (!$this->dryRun) {
$this->installationManager->notifyInstalls($this->io);
}
// output suggestions if we're in dev mode
if ($this->devMode) {