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

Unified Diff: utils/pub/system_cache.dart

Issue 10628016: Add a Pub source for pub.dartlang.org. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 18fa1dbc0d5f61fc8d703fd54f9d0de25f441c2c..c022af7d365085a03f18826bbdd532f5821bc903 100644
--- a/utils/pub/system_cache.dart
+++ b/utils/pub/system_cache.dart
@@ -4,8 +4,10 @@
#library('system_cache');
+#import('io.dart');
#import('package.dart');
#import('source_registry.dart');
+#import('utils.dart');
/**
* The system-wide cache of installed packages.
@@ -79,9 +81,7 @@ class SystemCache {
}).chain((_) {
return id.source.install(id, path);
}).chain((found) {
- if (!found) {
- throw 'Package ${id.fullName} not found in source "${id.source.name}".';
- }
+ if (!found) throw 'Package $id not found.';
return Package.load(path, sources);
});

Powered by Google App Engine
This is Rietveld 408576698