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
Do not handle exceptions thrown before initialization (closes #493) #494
Conversation
hmm I dont think we should every have this case, also you have a typo :p |
I can't reproduce this myself but I think this would just mask a real bug so I'm hesitant to merge this, we should find the real issue |
On Wed, Jul 04, 2012 at 08:45:47AM -0700, TJ Holowaychuk wrote:
Again I think this was with node-0.8.0 --strk; |
I'm using 0.8.0 but even if that's the case it's a side-effect of another bug |
On Wed, Jul 04, 2012 at 09:08:12AM -0700, TJ Holowaychuk wrote:
Yeah, could also be a big mess I'm making by switching continuosly Anyway the aim of the commit was to help at debugging the specific --strk; |
The error didn't show up for me until I upgraded from 0.8.1 to 0.8.2 from chris-lea-node_js repo on 12.04. Here is a list of packages I have installed:
Let me know if there is any other debug information you might need. |
@ghettodev do the commits in this branch fix the issue for you ? By "fix the issue" I mean you get a meaningful error message... |
I've only seen this once and it was because I didn't have redis fired up and tried to run tests, so that makes me think we are only really getting this under similar conditions when mocha is not even really running yet, so we should re-throw to expose the original error and bail out of mocha |
I think I've narrowed it down. When I remove the line When I add strk's addition I can run |
we shouldn't just be ignoring errors though, that's a sign of a larger problem |
On Wed, Jul 18, 2012 at 10:00:58AM -0700, TJ Holowaychuk wrote:
I think he mentioned he's seeing the error (it's not ignored) ? --strk; |
Although now I wonder if I'm doing this correctly... I'm new to node and am still running through tutorials. Should mocha test and my node dev environment be listening on a different ports? |
Sorry if I'm not being clear about the error. When I run node in one window and then run mocha in another window, mocha returns this:
When I shut down the node app and only run mocha I don't see the error. When I add srk's fix and run both instances I don't see the error and both instances work as expected. |
No description provided.