-
Notifications
You must be signed in to change notification settings - Fork 465
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
Flip order of error message for wrong name #6336
Conversation
I'm a bit more doubtful about this one, the order is indeed more logical this way, but having the important piece of information last in the terminal is also nice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's enough consensus, go for it.
I typically read the error block from top to bottom in my terminal, so I approve of this change 👍 |
Waiting for more people to weigh in on what they think about this before deciding whether to go with it. |
I like that |
15c1ffb
to
6600cbd
Compare
This flips the order of the error message parts for the "wrong name" error message. This is to make things clearer. Instead of starting with the definition of the thing we're looking for, we start with what's wrong, and then print the definition.
This makes things clearer in general, but it especially improves the situation for React components with a large amount of props, or with props with types that are verbose.
React component before:
After:
The biggest improvement is seen in the editor, where the relevant information is now visible without needing to scroll in the hover or problems tab: