-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Remove 3rd party function calls from stack trace only when earlier than user code #1766
Comments
I think that's a good point! Easy fix is to drop Line 695 in 7493bca
|
This was referenced Jun 28, 2015
I think I agree. @mochajs/mocha anyone else who has a strong oppinion on this? |
👍 |
👍 too. |
This was referenced Sep 9, 2015
Closed
1 task
This was referenced Dec 29, 2018
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
Shortening of stack traces is great, but it shouldn't suppress the exception's source from 3rd party (stuff in
node_modules
) function calls that come after user code. The ones leading up to user code are definitely useless (like two dozens of Mocha internal calls), but hiding the the path from user code to the possibly faulty library makes it a little difficult to discern the problem.Case in point, I had a problem in a module:
With short stack traces on, the only lines visible were:
Impossible to decipher. ;-)
The text was updated successfully, but these errors were encountered: