Skip to content

[Console] Fix catching exception type in QuestionHelper #23240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2017
Merged

[Console] Fix catching exception type in QuestionHelper #23240

merged 1 commit into from
Jun 21, 2017

Conversation

voronkovich
Copy link
Contributor

@voronkovich voronkovich commented Jun 20, 2017

Q A
Branch? 2.8
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

When generic exceptions were replaced by domain exceptions in dd17dc0 one catch statement was missed. The existing code works fine because a RuntimeException extends a \RuntimeException.

@voronkovich voronkovich changed the base branch from master to 2.8 June 20, 2017 20:53
@sstok
Copy link
Contributor

sstok commented Jun 21, 2017

Failure seems unrelated.

Status: reviewed

@fabpot
Copy link
Member

fabpot commented Jun 21, 2017

Thank you @voronkovich.

@fabpot fabpot merged commit 1c091eb into symfony:2.8 Jun 21, 2017
fabpot added a commit that referenced this pull request Jun 21, 2017
…oronkovich)

This PR was merged into the 2.8 branch.

Discussion
----------

[Console] Fix catching exception type in QuestionHelper

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

When generic exceptions were replaced by domain exceptions in dd17dc0 one catch statement was missed. The existing code works fine because a `RuntimeException` extends a `\RuntimeException`.

Commits
-------

1c091eb [Console] Fix catching exception type in QuestionHelper
@voronkovich voronkovich deleted the fix-question-helper branch June 21, 2017 14:25
This was referenced Jul 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants