From 1cec952599cd4cc125f4a6008c972330035d9b1a Mon Sep 17 00:00:00 2001 From: treemore Date: Sun, 15 Oct 2017 13:14:34 -0500 Subject: [PATCH] emit error event emit error event --- lib/FastDownload.js | 2 ++ 1 file changed, 2 insertions(+) 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)