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

Unified Diff: utils/pub/system_cache.dart

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 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: utils/pub/system_cache.dart
diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
index 56bd7e40e10c36198b6114823897634f084b0a91..de949e83a1debb1c501d963c7b1d3ea5079105ef 100644
--- a/utils/pub/system_cache.dart
+++ b/utils/pub/system_cache.dart
@@ -59,7 +59,7 @@ class SystemCache {
*/
Future<Package> install(PackageId id) {
if (!id.source.shouldCache) {
- throw new IllegalArgumentException("Package $id is not cacheable.");
+ throw new ArgumentError("Package $id is not cacheable.");
}
var pending = _pendingInstalls[id];

Powered by Google App Engine
This is Rietveld 408576698