react-native/local-cli/runIOS
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
..
__tests__ remove disableAutomock from jest tests (new default) @bypass-lint 2017-06-13 15:04:09 -07:00
findMatchingSimulator.js Make run-ios find if a device is booted better 2016-12-01 09:58:32 -08:00
findXcodeProject.js
parseIOSDevicesList.js cli run-ios on device 2016-09-06 08:13:41 -07:00
runIOS.js Return meaningful error when no devices available 2017-08-22 23:50:55 -07:00