Return an error from flutter_tools if gen_snapshot fails in an AOT build (#21576)

Fixes https://github.com/flutter/flutter/issues/21215
This commit is contained in:
Jason Simmons
2018-09-07 16:44:01 -07:00
committed by GitHub
parent 3821c35d04
commit 6effa190b9

View File

@@ -145,8 +145,7 @@ class BuildAotCommand extends BuildSubCommand {
);
if (snapshotExitCode != 0) {
status?.cancel();
printError('Snapshotting exited with non-zero exit code: $snapshotExitCode');
return;
throwToolExit('Snapshotting exited with non-zero exit code: $snapshotExitCode');
}
}
} on String catch (error) {