| Index: pkg/front_end/lib/src/fasta/compile_platform.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/compile_platform.dart b/pkg/front_end/lib/src/fasta/compile_platform.dart
|
| index 3806ed97ba864d23ddae28abea4394fb225c5d8c..0cd6c4681fadc8d8147fe39cbe1e24f44a7a7ed7 100644
|
| --- a/pkg/front_end/lib/src/fasta/compile_platform.dart
|
| +++ b/pkg/front_end/lib/src/fasta/compile_platform.dart
|
| @@ -22,6 +22,8 @@ import 'deprecated_problems.dart' show deprecated_InputError;
|
|
|
| import 'kernel/utils.dart' show writeProgramToFile;
|
|
|
| +import 'severity.dart' show Severity;
|
| +
|
| import 'ticker.dart' show Ticker;
|
|
|
| const int iterations = const int.fromEnvironment("iterations", defaultValue: 1);
|
| @@ -35,7 +37,8 @@ Future mainEntryPoint(List<String> arguments) async {
|
| await compilePlatform(arguments);
|
| } on deprecated_InputError catch (e) {
|
| exitCode = 1;
|
| - print(e.deprecated_format());
|
| + CompilerContext.current
|
| + .report(deprecated_InputError.toMessage(e), Severity.error);
|
| return null;
|
| }
|
| }
|
|
|