| Index: sdk/lib/_internal/compiler/implementation/source_file_provider.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/source_file_provider.dart b/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
|
| index c97cebe3cf0d2494301b328f38de5ae5997fe188..861bc2e58fb80e7db1c370710979a3e427a34399 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
|
| @@ -151,14 +151,14 @@ class FormattingDiagnosticHandler {
|
| color = (x) => x;
|
| }
|
| if (uri == null) {
|
| - assert(fatal);
|
| - print(color(message));
|
| + print('${color(message)}');
|
| } else {
|
| SourceFile file = provider.sourceFiles[uri.toString()];
|
| - if (file == null) {
|
| + if (file != null) {
|
| + print(file.getLocationMessage(color(message), begin, end, true, color));
|
| + } else {
|
| throw '$uri: file is null';
|
| }
|
| - print(file.getLocationMessage(color(message), begin, end, true, color));
|
| }
|
| if (fatal && throwOnError) {
|
| isAborting = true;
|
|
|