diff --git a/lib/FastDownload.js b/lib/FastDownload.js index 0971709..de50255 100755 --- a/lib/FastDownload.js +++ b/lib/FastDownload.js @@ -62,6 +62,8 @@ function FastDownload (url, options, cb) { }) self._init_http(next) } + }).on("error",function(error){ + self.emit('error', error) }) } util.inherits(FastDownload, Readable)