fail flutter analyze when there are errors (#4117)

This commit is contained in:
Devon Carew
2016-05-23 14:39:42 -07:00
parent cf83a81329
commit 4764550f9f

View File

@@ -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;