Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f7054b

Browse files
committed
Minor tweaks
1 parent 1cf4cc5 commit 9f7054b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/ErrorRenderer/Command/DebugCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function configure(): void
5555
5656
<info>php %command.full_name%</info>
5757
58-
Or outputs a sample in a specific format:
58+
Or output a sample in a specific format:
5959
6060
<info>php %command.full_name% format</info>
6161

@@ -77,15 +77,15 @@ protected function execute(InputInterface $input, OutputInterface $output)
7777
throw new InvalidArgumentException(sprintf('No error renderer found for format "%s". Known format are %s.', $format, implode(', ', array_keys($this->renderers))));
7878
}
7979

80-
$exception = FlattenException::createFromThrowable(new \Exception('Something has intentionally gone wrong.'), 500, ['X-Debug' => false]);
80+
$exception = FlattenException::createFromThrowable(new \Exception('This is a sample exception.'), 500, ['X-Debug' => false]);
8181
$io->writeln($renderers[$format]->render($exception));
8282
} else {
8383
$tableRows = [];
8484
foreach ($renderers as $format => $renderer) {
8585
$tableRows[] = [sprintf('<fg=cyan>%s</fg=cyan>', $format), \get_class($renderer)];
8686
}
8787

88-
$io->title('ErrorRenderer');
88+
$io->title('Error Renderers');
8989
$io->text('The following error renderers are available:');
9090
$io->newLine();
9191
$io->table(['Format', 'Class'], $tableRows);

0 commit comments

Comments
 (0)