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