Skip to content

Commit

Permalink
Remove error if drupal not installed yet (#3578)
Browse files Browse the repository at this point in the history
* [console] Validate service exists when injecting to command.

* [console] Remove error when drupal not yet installed.
  • Loading branch information
jmolivas authored Nov 12, 2017
1 parent e73f299 commit 2b99759
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion config/services/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ services:
- { name: drupal.command }
console.site_status:
class: Drupal\Console\Command\Site\StatusCommand
arguments: ['@system.manager', '@settings', '@config.factory', '@theme_handler', '@app.root']
arguments: ['@?system.manager', '@settings', '@config.factory', '@theme_handler', '@app.root']
tags:
- { name: drupal.command }
3 changes: 0 additions & 3 deletions src/Bootstrap/Drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ public function boot()

return $container;
} catch (\Exception $e) {
if ($command != 'about') {
$io->error($e->getMessage());
}
$drupal = new DrupalConsoleCore(
$this->drupalFinder->getComposerRoot(),
$this->drupalFinder->getDrupalRoot()
Expand Down

0 comments on commit 2b99759

Please sign in to comment.