| Index: utils/pub/package.dart
|
| diff --git a/utils/pub/package.dart b/utils/pub/package.dart
|
| index 218797ebaba6034a88ba708f9f753043ec39de9e..3b058e035470b11c311b826bc45cbfb5d644db56 100644
|
| --- a/utils/pub/package.dart
|
| +++ b/utils/pub/package.dart
|
| @@ -135,7 +135,7 @@ class PackageId implements Comparable, Hashable {
|
| String toString() => "$name $version from ${source.name}";
|
|
|
| int compareTo(Comparable other) {
|
| - if (other is! PackageId) throw new IllegalArgumentException(other);
|
| + if (other is! PackageId) throw new ArgumentError(other);
|
|
|
| var sourceComp = source.name.compareTo(other.source.name);
|
| if (sourceComp != 0) return sourceComp;
|
|
|