Skip to content

Commit

Permalink
[site:install] Add error message to failed connection (#4024)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjuarez20 authored and enzolutions committed May 9, 2019
1 parent ca39d83 commit 9bbc171
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Command/Site/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,12 @@ protected function restoreSitesFile()
}

protected function runInstaller($database, $uri) {

if(!Database::isActiveConnection() && !is_null(Database::getConnectionInfo())) {
$this->getIo()->error($this->trans('commands.site.install.messages.connection-failed'));
return 1;
}

$input = $this->getIo()->getInput();
$this->site->loadLegacyFile('/core/includes/install.core.inc');

Expand Down

0 comments on commit 9bbc171

Please sign in to comment.