Index: compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
diff --git a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
index 642b35912ae016e35f52ecf08d209450ff9ba268..ea3ea09122acfcaf925fccd36c20f1b6b8b042c4 100644 |
--- a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
+++ b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
@@ -89,7 +89,8 @@ final class DartCompilerMainContext implements DartCompilerListener, DartCompile |
// Increment counters. |
if (event.getErrorCode().getSubSystem() == SubSystem.STATIC_TYPE) { |
incrementTypeErrorCount(); |
- } else if (event.getErrorCode().getErrorSeverity() == ErrorSeverity.ERROR) { |
+ } |
+ if (event.getErrorCode().getErrorSeverity() == ErrorSeverity.ERROR) { |
incrementErrorCount(); |
} else if (event.getErrorCode().getErrorSeverity() == ErrorSeverity.WARNING) { |
incrementWarningCount(); |