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

Feature request: Reverse stack trace / message location #46

Open
aight8 opened this issue Apr 12, 2017 · 1 comment
Open

Feature request: Reverse stack trace / message location #46

aight8 opened this issue Apr 12, 2017 · 1 comment

Comments

@aight8
Copy link

aight8 commented Apr 12, 2017

Stack traces are in generall have a not-ideal representation for CLI. If the stack is longer the message and the first trace item is at the beginning of the stack output.
It would be nice if there were an option to reverse the output.

item 3
item 2
item 1

Error: The error message


This is lot easier to read, try it out!

Also I show a code frame (using babel code frame) of the last trace item. The problem currently is that the code frame represents the first entry, and the first entry, which stands at the first position of the list.

So there should be 2 options:

  • reverseStackTrace
  • showErrorOnBottom
@AriaMinaei
Copy link
Owner

Hi @aight8,

I quite like the ideas you proposed in this issue and others (#45, #44, #43, #42). Implementing them shouldn't be too complicated, so I'd be happy to help you if you wanted to do them yourself and submit PRs. You can get started by running the test suite in debug mode to see how the whole thing works from start to finish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants