Index: pkg/analyzer_cli/lib/src/driver.dart |
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart |
index 0ee3e6a61d8bae0e29dc4757f5e9284a2c27001a..0c3ca2eb240918b638370a8a2cb7bd5bd9bfd7b9 100644 |
--- a/pkg/analyzer_cli/lib/src/driver.dart |
+++ b/pkg/analyzer_cli/lib/src/driver.dart |
@@ -747,9 +747,9 @@ class Driver implements CommandLineStarter { |
if (severity == ErrorSeverity.ERROR) { |
return true; |
} else if (severity == ErrorSeverity.WARNING && |
- (options.warningsAreFatal || options.hintsAreFatal)) { |
+ (options.warningsAreFatal || options.infosAreFatal)) { |
return true; |
- } else if (severity == ErrorSeverity.INFO && options.hintsAreFatal) { |
+ } else if (severity == ErrorSeverity.INFO && options.infosAreFatal) { |
return true; |
} else { |
return false; |