Make HTTP cache errors return null, warn, and log the error

Reviewed By: davidaurelio

Differential Revision: D7757419

fbshipit-source-id: 24b33995a9ddfe7aa3d4bef9e5fbbfbd5af5d533
This commit is contained in:
Miguel Jimenez Esun 2018-04-25 08:31:25 -07:00 committed by Facebook Github Bot
parent 4a118ee69c
commit 2264fd9215

View File

@ -111,6 +111,10 @@ class HttpStore {
res.on('error', err => gunzipped.emit('error', err));
});
req.on('error', err => {
reject(err);
});
req.end();
});
}