Fail doctor check "Flutter" if sub-check fails (#11087)
See https://github.com/flutter/flutter/issues/11051
This commit is contained in:
committed by
GitHub
parent
1b20dbc6dd
commit
678c31f14c
@@ -193,7 +193,7 @@ class _FlutterValidator extends DoctorValidator {
|
||||
@override
|
||||
Future<ValidationResult> validate() async {
|
||||
final List<ValidationMessage> messages = <ValidationMessage>[];
|
||||
final ValidationType valid = ValidationType.installed;
|
||||
ValidationType valid = ValidationType.installed;
|
||||
|
||||
final FlutterVersion version = FlutterVersion.instance;
|
||||
|
||||
@@ -215,6 +215,7 @@ class _FlutterValidator extends DoctorValidator {
|
||||
if (!_genSnapshotRuns(genSnapshotPath)) {
|
||||
messages.add(new ValidationMessage.error('Downloaded executables cannot execute '
|
||||
'on host (see https://github.com/flutter/flutter/issues/6207 for more information)'));
|
||||
valid = ValidationType.partial;
|
||||
}
|
||||
|
||||
return new ValidationResult(valid, messages,
|
||||
|
||||
Reference in New Issue
Block a user