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

Handle request error #3

Merged
merged 2 commits into from Feb 28, 2013
Merged

Handle request error #3

merged 2 commits into from Feb 28, 2013

Conversation

PavelKonon
Copy link
Contributor

I have faced with problem that when remote server is not accessible then callback function doesn't invoked at all.

@@ -48,6 +48,9 @@ JSONRPCClient = function (scheme, host, port, path) {

// Send request
request = require(this.scheme).request(requestOptions, onComplete);
request.on('error', function (error) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong indent

@PavelKonon
Copy link
Contributor Author

Fix wrong indentation.

tarmolov added a commit that referenced this pull request Feb 28, 2013
@tarmolov tarmolov merged commit c9f6135 into tarmolov:master Feb 28, 2013
@tarmolov
Copy link
Owner

Thank you

@PavelKonon
Copy link
Contributor Author

Can you please upload updated version of this project to NPM registry?

@tarmolov
Copy link
Owner

done

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.

None yet

2 participants