Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1101)

Unified Diff: pkg/analyzer_cli/lib/src/build_mode.dart

Issue 2825503002: Revert "Revert "Report error if the same uri appears in multiple summaries."" (Closed)
Patch Set: Fix broken test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_cli/lib/src/build_mode.dart
diff --git a/pkg/analyzer_cli/lib/src/build_mode.dart b/pkg/analyzer_cli/lib/src/build_mode.dart
index 0fa7fa6d64e65beeb5cc8eeb0878d222d52d738b..985511db795d58c303585312c7a6a99c3d020c48 100644
--- a/pkg/analyzer_cli/lib/src/build_mode.dart
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart
@@ -169,7 +169,13 @@ class BuildMode {
.toList());
// Prepare the analysis context.
- _createContext();
+ try {
+ _createContext();
+ } on ConflictingSummaryException catch (e) {
+ errorSink.writeln('$e');
+ io.exitCode = ErrorSeverity.ERROR.ordinal;
+ return ErrorSeverity.ERROR;
+ }
// Add sources.
ChangeSet changeSet = new ChangeSet();
« no previous file with comments | « pkg/analyzer/test/src/summary/package_bundle_reader_test.dart ('k') | pkg/dev_compiler/lib/src/compiler/command.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698