Commit 678c31f1 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Fail doctor check "Flutter" if sub-check fails (#11087)

See https://github.com/flutter/flutter/issues/11051
parent 1b20dbc6
...@@ -193,7 +193,7 @@ class _FlutterValidator extends DoctorValidator { ...@@ -193,7 +193,7 @@ class _FlutterValidator extends DoctorValidator {
@override @override
Future<ValidationResult> validate() async { Future<ValidationResult> validate() async {
final List<ValidationMessage> messages = <ValidationMessage>[]; final List<ValidationMessage> messages = <ValidationMessage>[];
final ValidationType valid = ValidationType.installed; ValidationType valid = ValidationType.installed;
final FlutterVersion version = FlutterVersion.instance; final FlutterVersion version = FlutterVersion.instance;
...@@ -215,6 +215,7 @@ class _FlutterValidator extends DoctorValidator { ...@@ -215,6 +215,7 @@ class _FlutterValidator extends DoctorValidator {
if (!_genSnapshotRuns(genSnapshotPath)) { if (!_genSnapshotRuns(genSnapshotPath)) {
messages.add(new ValidationMessage.error('Downloaded executables cannot execute ' messages.add(new ValidationMessage.error('Downloaded executables cannot execute '
'on host (see https://github.com/flutter/flutter/issues/6207 for more information)')); 'on host (see https://github.com/flutter/flutter/issues/6207 for more information)'));
valid = ValidationType.partial;
} }
return new ValidationResult(valid, messages, return new ValidationResult(valid, messages,
......
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