From 602f17c8b20cfa20b3f3f02df57d50ffc3c4045d Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Sat, 3 Oct 2015 19:22:45 +0300 Subject: [PATCH] fix "unimplemented" error when uplink is offline --- lib/up-storage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/up-storage.js b/lib/up-storage.js index 897b44b79..83ae61ec7 100644 --- a/lib/up-storage.js +++ b/lib/up-storage.js @@ -103,6 +103,7 @@ Storage.prototype.request = function(options, cb) { if (typeof(cb) === 'function') cb(Error('uplink is offline')) req.emit('error', Error('uplink is offline')) }) + req._read = function(){} // preventing 'Uncaught, unspecified "error" event' req.on('error', function(){}) return req