Suppress Metro error
Summary: T84629221 shows this is quite common and is not something we want to log errors for. Reviewed By: mweststrate Differential Revision: D26371400 fbshipit-source-id: 748a83d8ad484b0ceb1f3bf7e3a447602ae4c961
This commit is contained in:
committed by
Facebook GitHub Bot
parent
eff1ce5ba7
commit
27f34be824
@@ -38,7 +38,7 @@ async function isMetroRunning(): Promise<boolean> {
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
.on('error', (err: any) => {
|
.on('error', (err: any) => {
|
||||||
if (err.code !== 'ECONNREFUSED') {
|
if (err.code !== 'ECONNREFUSED' && err.code !== 'ECONNRESET') {
|
||||||
console.error('Could not connect to METRO ' + err);
|
console.error('Could not connect to METRO ' + err);
|
||||||
}
|
}
|
||||||
resolve(false);
|
resolve(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user