mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Prettier RN local-cli
Reviewed By: yungsters Differential Revision: D7962462 fbshipit-source-id: 0afe2092af8703895de91a6d1400315c3173aa6d
This commit is contained in:
committed by
Facebook Github Bot
parent
680fb50040
commit
aba4ec0c09
@@ -3,7 +3,10 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const chalk = require('chalk');
|
||||
@@ -26,20 +29,19 @@ function _logAndroid() {
|
||||
|
||||
const adbArgs = ['logcat', '*:S', 'ReactNative:V', 'ReactNativeJS:V'];
|
||||
|
||||
console.log(chalk.bold(
|
||||
`Starting the logger (${adbPath} ${adbArgs.join(' ')})...`
|
||||
));
|
||||
console.log(
|
||||
chalk.bold(`Starting the logger (${adbPath} ${adbArgs.join(' ')})...`),
|
||||
);
|
||||
|
||||
const log = child_process.spawnSync(adbPath, adbArgs, {stdio: 'inherit'});
|
||||
|
||||
if (log.error !== null) {
|
||||
throw log.error;
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
console.log(chalk.red(
|
||||
'adb invocation failed. Do you have adb in your PATH?'
|
||||
));
|
||||
console.log(
|
||||
chalk.red('adb invocation failed. Do you have adb in your PATH?'),
|
||||
);
|
||||
return Promise.reject();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user