Exit with error code 11 when port is taken

Reviewed By: javache

Differential Revision: D3831703

fbshipit-source-id: ef92cacbc9178b7b661b3a9731dffb97cfc66b7a
This commit is contained in:
Alex Kotliarskyi 2016-09-08 15:53:15 -07:00 committed by Facebook Github Bot 5
parent f1c158e534
commit 7398780357
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ function server(argv, config, args) {
}
console.log('\nSee', chalk.underline('http://facebook.github.io/react-native/docs/troubleshooting.html'));
console.log('for common problems and solutions.');
process.exit(1);
process.exit(11);
});
runServer(args, config, () => console.log('\nReact packager ready.\n'));