Skip to content

Commit

Permalink
Update Application.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-shevchenko authored and xabbuh committed Oct 26, 2022
1 parent f83da4d commit 8e70c1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ public function doRun(InputInterface $input, OutputInterface $output)
$alternative = $alternatives[0];

$style = new SymfonyStyle($input, $output);
$style->block(sprintf('Command "%s" is not defined.', $name), null, 'error', ' ', true);
$output->writeln('');
$formattedBlock = (new FormatterHelper())->formatBlock(sprintf('Command "%s" is not defined.', $name), 'error', true);
$output->writeln($formattedBlock);
if (!$style->confirm(sprintf('Do you want to run "%s" instead? ', $alternative), false)) {
if (null !== $this->dispatcher) {
$event = new ConsoleErrorEvent($input, $output, $e);
Expand Down

0 comments on commit 8e70c1c

Please sign in to comment.