react-native/local-cli
Vladimir Kotikov ad4aee7519 Return meaningful error when no devices available
Summary:
`react-native run-ios --device` should report 'No iOS devices connected.' in case when no devices attached. However due to logic bug when empty array is being treatened as a boolean value, cli reports odd message, saying `Could not find device with the name: "true".`

Disconnect all iOS devices from developer machine and run `react-native run-ios --device` in any project - console message should state that there are no devices available.
Closes https://github.com/facebook/react-native/pull/15603

Differential Revision: D5686891

Pulled By: shergin

fbshipit-source-id: 289461b6f920691ad39e940ecca6d85cf2a3573b
2017-08-22 23:50:55 -07:00
..
__mocks__ Fix lint in local-cli 2016-11-14 11:13:42 -08:00
bundle RN local-cli: format and @flow filterPlatformAssetScales 2017-08-22 09:29:14 -07:00
core metro-bundler: remove hardcoded AssetRegistry path 2017-07-24 17:16:39 -07:00
dependencies Reject local-cli promises with Error objects 2017-08-08 09:38:21 -07:00
eject Eject CLI command to re-create native folders 2017-02-03 12:58:46 -08:00
generator Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
info added info CLI command 2017-07-18 11:45:47 -07:00
init CLI: Add support for project templates 2017-02-06 12:31:25 -08:00
install Use Yarn for Install/Uninstall CLI if available 2017-02-02 05:13:33 -08:00
library Reject local-cli promises with Error objects 2017-08-08 09:38:21 -07:00
link Correctly handle the case where HEADER_SEARCH_PATHS is a single string 2017-08-04 15:16:19 -07:00
logAndroid Use native Promise in local-cli 2016-11-21 10:28:34 -08:00
logIOS Use native Promise in local-cli 2016-11-21 10:28:34 -08:00
runAndroid add --port options to run-android, defaults to 8081 2017-08-08 06:53:20 -07:00
runIOS Return meaningful error when no devices available 2017-08-22 23:50:55 -07:00
server Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
templates Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
upgrade New upgrading process, relying on Git 2016-11-28 08:28:35 -08:00
util Remove typed option loading 2017-08-08 19:11:15 -07:00
.eslintrc Disallow trailing commas in react-native-github 2017-08-17 16:20:04 -07:00
cli.js packager: centralize babelRegisterOnly callsites 2017-01-06 06:13:54 -08:00
cliEntry.js Stronger config types 2017-05-03 06:51:47 -07:00
commands.js added info CLI command 2017-07-18 11:45:47 -07:00
setup_env.bat Fix comments on .bat file 2015-10-28 21:36:07 -04:00
setup_env.sh CLI: Adding shebang to setup_env.sh script 2017-05-31 02:46:23 -07:00
wrong-react-native.js Run eslint on all js files 2017-07-12 14:09:53 -07:00