Fix runAndroid

Reviewed By: kmagiera, martinbigio

Differential Revision: D2565100

fb-gh-sync-id: 3be393fbd164997ebaa7a9b133e6ebb72059a615
This commit is contained in:
Martin Konicek 2015-10-21 09:37:44 -07:00 committed by facebook-github-bot-5
parent 62ac37275f
commit c771fb3072
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ const isPackagerRunning = require('../util/isPackagerRunning');
const Promise = require('promise');
/**
* Starts the app on the Android simulator.
* Starts the app on a connected Android emulator or device.
*/
function runAndroid(argv, config) {
return new Promise((resolve, reject) => {
@ -47,7 +47,7 @@ function _runAndroid(argv, config, resolve, reject) {
console.log(chalk.bold('Starting JS server...'));
startServerInNewWindow();
}
buildAndRun(args);
buildAndRun(args, reject);
}));
}