Commit 16dc94ef authored by Danny Tuppeny's avatar Danny Tuppeny Committed by Danny Tuppeny

Update "no devices" text to suggest "flutter emulators"

parent b4c967ab
...@@ -32,7 +32,8 @@ class DevicesCommand extends FlutterCommand { ...@@ -32,7 +32,8 @@ class DevicesCommand extends FlutterCommand {
if (devices.isEmpty) { if (devices.isEmpty) {
printStatus( printStatus(
'No devices detected.\n\n' 'No devices detected.\n\n'
'If you expected your device to be detected, please run "flutter doctor" to diagnose\n' "Run 'flutter emulators' to list and start any available device emulators.\n\n"
'Or, 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.'); 'potential issues, or visit https://flutter.io/setup/ for troubleshooting tips.');
final List<String> diagnostics = await deviceManager.getDeviceDiagnostics(); final List<String> diagnostics = await deviceManager.getDeviceDiagnostics();
if (diagnostics.isNotEmpty) { if (diagnostics.isNotEmpty) {
......
...@@ -216,7 +216,7 @@ class RunCommand extends RunCommandBase { ...@@ -216,7 +216,7 @@ class RunCommand extends RunCommandBase {
if (getCurrentHostPlatform() == HostPlatform.darwin_x64 && if (getCurrentHostPlatform() == HostPlatform.darwin_x64 &&
xcode.isInstalledAndMeetsVersionCheck) { xcode.isInstalledAndMeetsVersionCheck) {
printStatus(''); printStatus('');
printStatus('To run on a simulator, launch it first: open -a Simulator.app'); printStatus("Run 'flutter emulators' to list and start any available device emulators.");
printStatus(''); printStatus('');
printStatus('If you expected your device to be detected, please run "flutter doctor" to diagnose'); printStatus('If you expected your device to be detected, please run "flutter doctor" to diagnose');
printStatus('potential issues, or visit https://flutter.io/setup/ for troubleshooting tips.'); printStatus('potential issues, or visit https://flutter.io/setup/ for troubleshooting tips.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment