Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: pkg/front_end/lib/physical_file_system.dart

Issue 3006483002: Remove check for scheme in source-loader. (Closed)
Patch Set: address bot failures Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/physical_file_system.dart
diff --git a/pkg/front_end/lib/physical_file_system.dart b/pkg/front_end/lib/physical_file_system.dart
index 2fe685619524c6ebea049d110332ebef42263932..083f802de7da9bae2d4d1ca5754b000c39e1d622 100644
--- a/pkg/front_end/lib/physical_file_system.dart
+++ b/pkg/front_end/lib/physical_file_system.dart
@@ -21,7 +21,8 @@ class PhysicalFileSystem implements FileSystem {
@override
FileSystemEntity entityForUri(Uri uri) {
if (uri.scheme != 'file' && uri.scheme != '') {
- throw new ArgumentError('File URI expected');
+ throw new FileSystemException(
+ uri, 'PhysicalFileSystem only supports file:* URIs');
}
return new _PhysicalFileSystemEntity(Uri.base.resolveUri(uri));
}

Powered by Google App Engine
This is Rietveld 408576698