Commit fe762666 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by Danny Tuppeny

Improve error message when no AVD path

parent 7a338886
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
import 'dart:async'; import 'dart:async';
import '../base/common.dart'; import '../base/common.dart';
import '../base/platform.dart';
import '../base/utils.dart'; import '../base/utils.dart';
import '../doctor.dart'; import '../doctor.dart';
import '../emulator.dart'; import '../emulator.dart';
...@@ -27,8 +28,9 @@ class EmulatorsCommand extends FlutterCommand { ...@@ -27,8 +28,9 @@ class EmulatorsCommand extends FlutterCommand {
Future<Null> runCommand() async { Future<Null> runCommand() async {
if (doctor.workflows.every((Workflow w) => !w.canListEmulators)) { if (doctor.workflows.every((Workflow w) => !w.canListEmulators)) {
throwToolExit( throwToolExit(
"Unable to query emulators; please run 'flutter doctor' for " 'Unable to find any emulator sources. Please ensure you have some\n'
'information about installing additional components.', 'Android AVD images ' + (platform.isMacOS ? 'or an iOS Simulator ' : '')
+ 'available.',
exitCode: 1); exitCode: 1);
} }
......
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