mirror of
https://github.com/status-im/metro.git
synced 2025-03-03 20:20:42 +00:00
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:
parent
4a118ee69c
commit
2264fd9215
@ -111,6 +111,10 @@ class HttpStore {
|
|||||||
res.on('error', err => gunzipped.emit('error', err));
|
res.on('error', err => gunzipped.emit('error', err));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
req.on('error', err => {
|
||||||
|
reject(err);
|
||||||
|
});
|
||||||
|
|
||||||
req.end();
|
req.end();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user