Skip to content

Commit db6afc8

Browse files
hjuarez20enzolutions
authored andcommitted
Display a error if a site has errors (#164)
1 parent 214d430 commit db6afc8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/drupal.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,14 @@
5555
}
5656

5757
if ($target) {
58-
if ($targetOptions = $configurationManager->readTarget($target)) {
58+
try{
59+
$targetOptions = $configurationManager->readTarget($target);
60+
}catch (Exception $e) {
61+
$io->error($e->getMessage());
62+
exit(1);
63+
}
64+
65+
if ($targetOptions) {
5966
$argvInputReader->setOptionsFromTargetConfiguration($targetOptions);
6067
$argvInputReader->setOptionsAsArgv();
6168
$type = $targetOptions['type'];

0 commit comments

Comments
 (0)