Better devices text (#3519)

* improve text for devices

* nit

* tweak text
This commit is contained in:
Devon Carew
2016-04-25 10:14:38 -07:00
parent 4e2657d25a
commit 86723ab99e
2 changed files with 5 additions and 2 deletions

View File

@@ -318,7 +318,7 @@ class CommonFinders {
/// expect(tester, hasWidget(find.byKey(backKey)));
Finder byKey(Key key) => new _KeyFinder(key);
/// Finds widgets by searching for widgehts with a particular type.
/// Finds widgets by searching for widgets with a particular type.
///
/// The `type` argument must be a subclass of [Widget].
///

View File

@@ -33,7 +33,10 @@ class DevicesCommand extends FlutterCommand {
List<Device> devices = await deviceManager.getAllConnectedDevices();
if (devices.isEmpty) {
printStatus('No connected devices.');
printStatus(
'No devices detected.\n\n'
'If you expected your device to be detected, please run "flutter doctor" to diagnose\n'
'potential issues, or visit https://flutter.io/setup/ for troubleshooting tips.');
} else {
printStatus('${devices.length} connected ${pluralize('device', devices.length)}:\n');
Device.printDevices(devices);