-
Notifications
You must be signed in to change notification settings - Fork 61
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
Property 'captureStackTrace' is not a function #18
Comments
I had not seen this problem before. What version of Node is this, and on what platform? |
Ubuntu 14.04, Node 0.10.33 |
If you start up a Node REPL and run this, what do you get:
|
Same as you |
This should be fixed by my refactoring for #10, but I'm still not sure why Error.captureStackTrace isn't present when this happens. Do you understand why that's happening? |
Sorry, this was a long time ago. I can't really remember the issue and I haven't run across it since we last spoke. |
Closing as a dup of #10, which should have fixed this. |
Hello. I am not a direct user of verror, only indirect via restify, and I have this problem:
When running tests against my rest api and an assertion-error is thrown the entire test runner breaks down because of this error:
I really don't understand much of this but I notice that in some parts of the verror code there is a check:
ìf (Error.captureStackTrace)
before using that function. This does not exist at the specific line (147) but if I add a check at that point my problem disappears and the assertion error message is correctly printed.Is this a check that can be added to the code to solve my problem?
The text was updated successfully, but these errors were encountered: