sergi/jsftp — Issue #19: ReferenceError shortly after issuing a raw quit
Author: rickysaltzer
Created: 2012-02-16 18:33:09+00:00
State: open

Hi there -

Shortly after issuing a raw quit on my FTP connection I an receiving an error complaining that err is not defined. See below:

jsftp/jsftp.js:176
!err && send();
^
ReferenceError: err is not defined
jsftp/jsftp.js:176:22
at Socket. (jsftp/jsftp.js:267:26)
at Socket.emit (events.js:88:20)
at Object.afterConnect [as oncomplete] (net.js:616:10)

Path names to the files have been shortened.

Here is my code: https://gist.github.com/1846894

Upload file takes (input file, output file name, res)...res being the response object for the node web server. At the end of the upload I'm sending a "upload complete" message to the user, right after quitting. However, shortly after disconnecting the session and notifying the user...an error takes down the whole application.