Index: pkg/front_end/tool/_fasta/analyzer_compile.dart |
diff --git a/pkg/front_end/tool/_fasta/analyzer_compile.dart b/pkg/front_end/tool/_fasta/analyzer_compile.dart |
index 18409328c1336dd2d1f4fe694d751cd35ac71f08..bc7b0bb67890e613288f4d5432879ca5b96fd10b 100644 |
--- a/pkg/front_end/tool/_fasta/analyzer_compile.dart |
+++ b/pkg/front_end/tool/_fasta/analyzer_compile.dart |
@@ -24,6 +24,8 @@ import 'package:front_end/src/fasta/deprecated_problems.dart' |
import 'package:front_end/src/fasta/dill/dill_target.dart' show DillTarget; |
+import 'package:front_end/src/fasta/severity.dart' show Severity; |
+ |
import 'package:front_end/src/fasta/uri_translator.dart' show UriTranslator; |
const int iterations = const int.fromEnvironment("iterations", defaultValue: 1); |
@@ -40,8 +42,9 @@ Future<Uri> compile(List<String> arguments) async { |
return await task.compile(); |
}); |
} on deprecated_InputError catch (e) { |
+ CompilerContext.current |
+ .report(deprecated_InputError.toMessage(e), Severity.error); |
exitCode = 1; |
- print(e.deprecated_format()); |
return null; |
} |
} |