Skip to content

Commit

Permalink
Display a error if a site has errors (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjuarez20 authored and enzolutions committed May 20, 2019
1 parent 214d430 commit db6afc8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@
}

if ($target) {
if ($targetOptions = $configurationManager->readTarget($target)) {
try{
$targetOptions = $configurationManager->readTarget($target);
}catch (Exception $e) {
$io->error($e->getMessage());
exit(1);
}

if ($targetOptions) {
$argvInputReader->setOptionsFromTargetConfiguration($targetOptions);
$argvInputReader->setOptionsAsArgv();
$type = $targetOptions['type'];
Expand Down

0 comments on commit db6afc8

Please sign in to comment.