Closed TheLudd closed 8 years ago
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:
$ node
> Error.captureStackTrace
[Function: captureStackTrace]
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?