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

Make the connection error message nicer :) #7

Closed
lydell opened this issue Oct 12, 2017 · 0 comments
Closed

Make the connection error message nicer :) #7

lydell opened this issue Oct 12, 2017 · 0 comments

Comments

@lydell
Copy link

lydell commented Oct 12, 2017

If you try to run npm-home while offline, this happens:

❯ nh --version
1.5.0

❯ nh -g npm-home
RequestError
    at ClientRequest.req.once.err (/home/lydell/.npm-global/lib/node_modules/npm-home/node_modules/got/index.js:73:21)
    at Object.onceWrapper (events.js:316:30)
    at emitOne (events.js:115:13)
    at ClientRequest.emit (events.js:210:7)
    at TLSSocket.socketErrorListener (_http_client.js:401:9)
    at emitOne (events.js:115:13)
    at TLSSocket.emit (events.js:210:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

I run into this every once in a while on the train where the Internet connection is spotty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants