mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
print gen_snapshot exit code; fix a missing type annotation (#4976)
This commit is contained in:
parent
57b76a050f
commit
8893e32821
@ -256,7 +256,8 @@ Future<String> _buildAotSnapshot(
|
||||
|
||||
RunResult results = await runAsync(genSnapshotCmd);
|
||||
if (results.exitCode != 0) {
|
||||
printStatus(results.toString());
|
||||
printError('Dart snapshot generator failed with exit code ${results.exitCode}');
|
||||
printError(results.toString());
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -260,7 +260,7 @@ class IOSDevice extends Device {
|
||||
forwardDiagPort = _acquireAndForwardPort(ProtocolDiscovery.kDiagnosticService,
|
||||
debuggingOptions.diagnosticPort);
|
||||
} else {
|
||||
forwardDiagPort = new Future.value(null);
|
||||
forwardDiagPort = new Future<int>.value(null);
|
||||
}
|
||||
|
||||
return Future.wait(<Future<int>>[forwardObsPort, forwardDiagPort]);
|
||||
|
Loading…
Reference in New Issue
Block a user