Skip to content
Permalink
Browse files

[site:install] Add error message to failed connection (#4024)

  • Loading branch information...
harold20 authored and enzolutions committed May 9, 2019
1 parent ca39d83 commit 9bbc171c14fb7d6e668753a381a3fcfef8adafac
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/Command/Site/InstallCommand.php
@@ -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');

0 comments on commit 9bbc171

Please sign in to comment.
You can’t perform that action at this time.