Unverified Commit 75b737ff authored by Alexander Aprelev's avatar Alexander Aprelev Committed by GitHub

Fail flutter build invocation on compilation errors. (#18800)

Fixes https://github.com/flutter/flutter/issues/18200.
parent e4f08d55
......@@ -93,7 +93,7 @@ class BuildAotCommand extends BuildSubCommand {
extraFrontEndOptions: argResults[FlutterOptions.kExtraFrontEndOptions],
);
if (mainPath == null) {
printError('Compiler terminated unexpectedly.');
throwToolExit('Compiler terminated unexpectedly.');
return;
}
}
......
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