Downgrade metro connection error
Reviewed By: passy Differential Revision: D47515502 fbshipit-source-id: aa05e9f62b661989187f0340cf06eaa7dbaac379
This commit is contained in:
committed by
Facebook GitHub Bot
parent
07292f837d
commit
9ef69bdbad
@@ -38,7 +38,7 @@ async function isMetroRunning(): Promise<boolean> {
|
|||||||
})
|
})
|
||||||
.on('error', (err: any) => {
|
.on('error', (err: any) => {
|
||||||
if (err.code !== 'ECONNREFUSED' && err.code !== 'ECONNRESET') {
|
if (err.code !== 'ECONNREFUSED' && err.code !== 'ECONNRESET') {
|
||||||
console.error('Could not connect to METRO ' + err);
|
console.warn('Could not connect to METRO ' + err);
|
||||||
}
|
}
|
||||||
resolve(false);
|
resolve(false);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user