Index: pkg/dev_compiler/lib/src/compiler/command.dart |
diff --git a/pkg/dev_compiler/lib/src/compiler/command.dart b/pkg/dev_compiler/lib/src/compiler/command.dart |
index 738837cea62097ebbca0c6277231580ee0f818b7..6170f6d85f7631e774f687cf7086b235ba7bd109 100644 |
--- a/pkg/dev_compiler/lib/src/compiler/command.dart |
+++ b/pkg/dev_compiler/lib/src/compiler/command.dart |
@@ -10,7 +10,7 @@ import 'package:analyzer/src/command_line/arguments.dart' |
ignoreUnrecognizedFlagsFlag; |
import 'package:analyzer/src/generated/source.dart' show Source; |
import 'package:analyzer/src/summary/package_bundle_reader.dart' |
- show InSummarySource; |
+ show ConflictingSummaryException, InSummarySource; |
import 'package:args/args.dart' show ArgParser, ArgResults; |
import 'package:args/command_runner.dart' show UsageException; |
import 'package:path/path.dart' as path; |
@@ -63,6 +63,10 @@ int compile(List<String> args, {void printFn(Object obj)}) { |
// Incorrect usage, input file not found, etc. |
printFn(error); |
return 64; |
+ } on ConflictingSummaryException catch (error) { |
+ // Same input file appears in multiple provided summaries. |
+ printFn(error); |
+ return 65; |
} on CompileErrorException catch (error) { |
// Code has error(s) and failed to compile. |
printFn(error); |