Commit 4764550f authored by Devon Carew's avatar Devon Carew

fail flutter analyze when there are errors (#4117)

parent cf83a813
......@@ -347,7 +347,7 @@ class AnalyzeCommand extends FlutterCommand {
if (firstAnalysis && _isBenchmarking) {
_writeBenchmark(analysisTimer, issueCount, -1); // TODO(ianh): track members missing dartdocs instead of saying -1
server.dispose().then((_) => exit(0));
server.dispose().then((_) => exit(issueCount > 0 ? 1 : 0));
}
firstAnalysis = false;
......
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