ajaxorg/jsftp — pull request #5 by sergi (2012-11-21 15:26:34+00:00)
Title: Move error handler to before socket connecting

The error handler for the main ftp socket was attached after the `connect` event, which means that errors **during** connection were not being handled, and crashed the server. This PR fixes that.

@ajaxorg/knuth @zefhemel