Unverified Commit 6effa190 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

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

Fixes https://github.com/flutter/flutter/issues/21215
parent 3821c35d
...@@ -145,8 +145,7 @@ class BuildAotCommand extends BuildSubCommand { ...@@ -145,8 +145,7 @@ class BuildAotCommand extends BuildSubCommand {
); );
if (snapshotExitCode != 0) { if (snapshotExitCode != 0) {
status?.cancel(); status?.cancel();
printError('Snapshotting exited with non-zero exit code: $snapshotExitCode'); throwToolExit('Snapshotting exited with non-zero exit code: $snapshotExitCode');
return;
} }
} }
} on String catch (error) { } on String catch (error) {
......
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