LearnBoost / soda

Selenium Node.JS adapter
http://labs.learnboost.com
464 stars 43 forks source link

Catch ECONNREFUSED #27

Open zzo opened 13 years ago

zzo commented 13 years ago

If the remote Selenium server is not up ECONNREFUSED gets thrown and terminates the entire process. Please do something similar to:

http://rentzsch.tumblr.com/post/664884799/node-js-handling-refused-http-client-connections

I'd fork & pull request myself BUT not sure how you want to handle the error... thanks!! Mark

juriejan commented 12 years ago

I've changed the code in my fork to send errors raised by the HTTP client to the callback function provided with the command.

https://github.com/edgecampus/soda

If you (everyone) approve of it, let me know and I will make a pull request.

zzo commented 12 years ago

ship it!