Commit d0118a9
committed
feature symfony#61308 [Console] Adding more helpful error messages to the Questionhelper (mamazu)
This PR was merged into the 7.4 branch.
Discussion
----------
[Console] Adding more helpful error messages to the Questionhelper
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | -
| License | MIT
When trying to debug, having an error like this is not very helpful:
```text
1) Sylius\Bundle\GridBundle\Tests\Functional\Maker\MakeGridTest::it_can_create_grids_interactively
Symfony\Component\Console\Exception\MissingInputException: Aborted.
symfony/console/Helper/QuestionHelper.php:273
symfony/console/Helper/QuestionHelper.php:139
symfony/console/Helper/QuestionHelper.php:65
symfony/console/Helper/QuestionHelper.php:473
symfony/console/Helper/QuestionHelper.php:67
symfony/console/Style/SymfonyStyle.php:307
symfony/console/Style/SymfonyStyle.php:247
```
When trying to debug where the error is actually coming from. More helpful would be:
```text
1) Sylius\Bundle\GridBundle\Tests\Functional\Maker\MakeGridTest::it_can_create_grids_interactively
Symfony\Component\Console\Exception\MissingInputException: Aborted while asking: Entity class to create a grid for
```
Commits
-------
9aa3023 Adding more helpful error messages to the QuestionhelperFile tree
2 files changed
+2
-2
lines changed- src/Symfony/Component/Console
- Helper
- Tests/Helper
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
740 | 740 | | |
741 | 741 | | |
742 | 742 | | |
743 | | - | |
| 743 | + | |
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
| |||
0 commit comments