diff --git a/src/Command/ServerCommand.php b/src/Command/ServerCommand.php index 1d7fcb5e2..c236fd0cb 100644 --- a/src/Command/ServerCommand.php +++ b/src/Command/ServerCommand.php @@ -65,7 +65,6 @@ protected function configure() protected function execute(InputInterface $input, OutputInterface $output) { $io = new DrupalStyle($input, $output); - $learning = $input->hasOption('learning')?$input->getOption('learning'):false; $address = $this->validatePort($input->getArgument('address')); $finder = new PhpExecutableFinder(); @@ -90,7 +89,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $io->commentBlock( sprintf( $this->trans('commands.server.messages.listening'), - $address + 'http://'.$address ) ); @@ -99,7 +98,10 @@ protected function execute(InputInterface $input, OutputInterface $output) if (!$process->isSuccessful()) { $io->error($process->getErrorOutput()); + return 1; } + + return 0; } /**