| Index: dart/lib/compiler/implementation/dart2js.dart
|
| diff --git a/dart/lib/compiler/implementation/dart2js.dart b/dart/lib/compiler/implementation/dart2js.dart
|
| index 55e24a6054394a66a8ba7835ca61f80a4762c24d..ee416414a85db764f1fe5fac3088837aa9183971 100644
|
| --- a/dart/lib/compiler/implementation/dart2js.dart
|
| +++ b/dart/lib/compiler/implementation/dart2js.dart
|
| @@ -250,6 +250,9 @@ void compile(List<String> argv) {
|
| print(color(message));
|
| } else if (fatal || showWarnings) {
|
| SourceFile file = sourceFiles[uri.toString()];
|
| + if (file == null) {
|
| + throw '$uri: file is null';
|
| + }
|
| print(file.getLocationMessage(color(message), begin, end, true, color));
|
| }
|
| if (fatal && throwOnError) {
|
|
|