| 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 4cbd6411e0a5e93fc2371d53c0c49a4b6c90a039..21a24ca68d47293d7a2148eada50bf096d2fe486 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
|
| @@ -38,8 +38,9 @@ class SourceFileProvider {
|
| try {
|
| source = readAll(uriPathToNative(resourceUri.path));
|
| } on FileException catch (ex) {
|
| - throw 'Error: Cannot read "${relativize(cwd, resourceUri, isWindows)}" '
|
| - '(${ex.osError}).';
|
| + return new Future.error(
|
| + 'Cannot read "${relativize(cwd, resourceUri, isWindows)}" '
|
| + '(${ex.osError}).');
|
| }
|
| dartCharactersRead += source.length;
|
| sourceFiles[resourceUri.toString()] = new SourceFile(
|
|
|