mirror of https://github.com/status-im/metro.git
[react-native] Make flow warn on timeout instead of redbox
This commit is contained in:
parent
976e6927ca
commit
1b4c460bc7
|
@ -99,6 +99,13 @@ function doFlowTypecheck(res, flowroot, next) {
|
||||||
hasWarned.noConfig = true;
|
hasWarned.noConfig = true;
|
||||||
console.warn(chalk.yellow('flow: ' + stderr));
|
console.warn(chalk.yellow('flow: ' + stderr));
|
||||||
}
|
}
|
||||||
|
_endFlowBad(res);
|
||||||
|
} else if (flowError.code === 3) {
|
||||||
|
if (!hasWarned.timeout) {
|
||||||
|
hasWarned.timeout = true;
|
||||||
|
console.warn(chalk.yellow('flow: ' + stdout));
|
||||||
|
}
|
||||||
|
_endSkipFlow(res);
|
||||||
} else {
|
} else {
|
||||||
if (!hasWarned.brokenFlow) {
|
if (!hasWarned.brokenFlow) {
|
||||||
hasWarned.brokenFlow = true;
|
hasWarned.brokenFlow = true;
|
||||||
|
@ -107,8 +114,8 @@ function doFlowTypecheck(res, flowroot, next) {
|
||||||
'`.\n' + 'stderr: `' + stderr + '`'
|
'`.\n' + 'stderr: `' + stderr + '`'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
_endFlowBad(res);
|
_endFlowBad(res);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue