Skip to content
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

[UX] Friendly command exceptions output #702

Merged
merged 1 commit into from
Nov 21, 2017
Merged

[UX] Friendly command exceptions output #702

merged 1 commit into from
Nov 21, 2017

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented Nov 21, 2017

This is only a minor improvement that remove the short trace line where the exception was thrown, thus the output feels like a natural message (intentional) rather than an (unexpected) debuggeable error:

before
delete-user-before

after
delete-user-after

In general, by using the exception classes of the Console component should be better for user messages.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So nice and so simple. I love it. thanks Yonel.

@javiereguiluz javiereguiluz merged commit 9842a4c into symfony:master Nov 21, 2017
javiereguiluz added a commit that referenced this pull request Nov 21, 2017
This PR was merged into the master branch.

Discussion
----------

[UX] Friendly command exceptions output

This is only a minor improvement that remove the short trace line where the exception was thrown, thus the output feels like a natural message (intentional) rather than an (unexpected) debuggeable error:

**before**
![delete-user-before](https://user-images.githubusercontent.com/2028198/33047796-9a006212-ce25-11e7-9f0c-dccfbf122d7b.png)

**after**
![delete-user-after](https://user-images.githubusercontent.com/2028198/33047800-a22f2b80-ce25-11e7-984b-cc48bdcf117d.png)

In general, by using the exception classes of the Console component should be better for user messages.

Commits
-------

9842a4c Throw Console exceptions for commands
@yceruto yceruto deleted the cmd_exception branch November 21, 2017 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants