Skip to content

Reject the promise if there is an HTTP (or DNS) error#3

Open
jeckhart wants to merge 1 commit intosorohan:masterfrom
jeckhart:master
Open

Reject the promise if there is an HTTP (or DNS) error#3
jeckhart wants to merge 1 commit intosorohan:masterfrom
jeckhart:master

Conversation

@jeckhart
Copy link

node-rest-client requires you to register an error listener to catch certain types of errors (such as DNS resolution failure). In order to maintain the promise API (which is great, thank you!) you'll need to register an error listener which can reject the promise.

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.

1 participant