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

Prevent CLI from throwing errors altogether. #7

Closed
wants to merge 1 commit into from
Closed

Prevent CLI from throwing errors altogether. #7

wants to merge 1 commit into from

Conversation

davidjbeveridge
Copy link

The issue I was having was that if I ran node server.js status, I would get
this error:

./node_modules/clu/lib/commandLine.js:209
    else throw err;
               ^
Error: connect ENOENT
    at errnoException (net.js:901:11)
    at Object.afterConnect [as oncomplete] (net.js:892:19)

I haven't been able to figure out how to directly execute the status command,
and thus, haven't been able to add a proper test. Any help here would be
greatly appreciated.

The issue I was having was that if I ran `node server.js status`, I would get
this error:
```
./node_modules/clu/lib/commandLine.js:209
	else throw err;
	           ^
Error: connect ENOENT
    at errnoException (net.js:901:11)
    at Object.afterConnect [as oncomplete] (net.js:892:19)
```

I haven't been able to figure out how to directly execute the status command,
and thus, haven't been able to add a proper test.  Any help here would be
greatly appreciated.
@fiws
Copy link
Owner

fiws commented Mar 16, 2014

Hello,

thank you for contributing and pointing out this bug! 👍
Error: connect ENOENT probably gets thrown because the master is not running. This happens if you use unix sockets to connect (which clu will use by default). Clu still should not throw in this case. I fixed this in the last commits.

If you still experience this problem, feel free to contact me again. :)

@fiws fiws closed this in c2b914e Mar 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants