Skip to content

Commit fc576d9

Browse files
committed
Minor tweaks
1 parent 1cf4cc5 commit fc576d9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
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);

src/Symfony/Component/ErrorRenderer/Tests/Command/DebugCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public function testAvailableRenderers()
2929
$this->assertEquals(0, $ret, 'Returns 0 in case of success');
3030
$this->assertSame(<<<TXT
3131
32-
ErrorRenderer
33-
=============
32+
Error Renderers
33+
===============
3434
3535
The following error renderers are available:
3636
@@ -57,7 +57,7 @@ public function testFormatArgument()
5757
{
5858
"title": "Internal Server Error",
5959
"status": 500,
60-
"detail": "Something has intentionally gone wrong."
60+
"detail": "This is a sample exception."
6161
}
6262
6363
TXT

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy