Adding error handler on the request object #5

merged 1 commit into from Jun 6, 2012

2 participants


Catches an error on request (ETIMEDOUT, ENOENT, etc.) and passes it to the callback instead of crashing. Tests are included for connecting with an invalid api_url and the valid default api_url.


Awesome! Thanks.

@infynyxx infynyxx merged commit 41ebc57 into sailthru:master Jun 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment