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..dfa7791c2c1bc15c32080845d610b3b7de5b9d15 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( |
ahe
2013/08/02 11:50:19
As far as I'm concerned, the compiler should be ab
Johnni Winther
2013/08/02 13:47:47
Done.
|
+ 'Error: Cannot read "${relativize(cwd, resourceUri, isWindows)}" ' |
+ '(${ex.osError}).'); |
} |
dartCharactersRead += source.length; |
sourceFiles[resourceUri.toString()] = new SourceFile( |