Commit 8893e328 authored by Yegor's avatar Yegor Committed by GitHub

print gen_snapshot exit code; fix a missing type annotation (#4976)

parent 57b76a05
...@@ -256,7 +256,8 @@ Future<String> _buildAotSnapshot( ...@@ -256,7 +256,8 @@ Future<String> _buildAotSnapshot(
RunResult results = await runAsync(genSnapshotCmd); RunResult results = await runAsync(genSnapshotCmd);
if (results.exitCode != 0) { if (results.exitCode != 0) {
printStatus(results.toString()); printError('Dart snapshot generator failed with exit code ${results.exitCode}');
printError(results.toString());
return null; return null;
} }
......
...@@ -260,7 +260,7 @@ class IOSDevice extends Device { ...@@ -260,7 +260,7 @@ class IOSDevice extends Device {
forwardDiagPort = _acquireAndForwardPort(ProtocolDiscovery.kDiagnosticService, forwardDiagPort = _acquireAndForwardPort(ProtocolDiscovery.kDiagnosticService,
debuggingOptions.diagnosticPort); debuggingOptions.diagnosticPort);
} else { } else {
forwardDiagPort = new Future.value(null); forwardDiagPort = new Future<int>.value(null);
} }
return Future.wait(<Future<int>>[forwardObsPort, forwardDiagPort]); return Future.wait(<Future<int>>[forwardObsPort, forwardDiagPort]);
......
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