Index: lib/compiler/implementation/util/uri_extras.dart |
diff --git a/lib/compiler/implementation/util/uri_extras.dart b/lib/compiler/implementation/util/uri_extras.dart |
index ecff80da3c1609c8ab271582ca7e03ec7ac05180..6c3d7678994252fd94e6c2df8f793d1f0694c501 100644 |
--- a/lib/compiler/implementation/util/uri_extras.dart |
+++ b/lib/compiler/implementation/util/uri_extras.dart |
@@ -10,11 +10,11 @@ |
String relativize(Uri base, Uri uri, bool isWindows) { |
if (!base.path.startsWith('/')) { |
// Also throw an exception if [base] or base.path is null. |
- throw new IllegalArgumentException('Expected absolute path: ${base.path}'); |
+ throw new ArgumentError('Expected absolute path: ${base.path}'); |
} |
if (!uri.path.startsWith('/')) { |
// Also throw an exception if [uri] or uri.path is null. |
- throw new IllegalArgumentException('Expected absolute path: ${uri.path}'); |
+ throw new ArgumentError('Expected absolute path: ${uri.path}'); |
} |
bool equalsNCS(String a, String b) { |
return a.toLowerCase() == b.toLowerCase(); |