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

Unified Diff: utils/pub/system_cache.dart

Issue 10666042: Reverting 9094 (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
« no previous file with comments | « utils/pub/repo_source.dart ('k') | utils/pub/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/system_cache.dart
diff --git a/utils/pub/system_cache.dart b/utils/pub/system_cache.dart
index c022af7d365085a03f18826bbdd532f5821bc903..18fa1dbc0d5f61fc8d703fd54f9d0de25f441c2c 100644
--- a/utils/pub/system_cache.dart
+++ b/utils/pub/system_cache.dart
@@ -4,10 +4,8 @@
#library('system_cache');
-#import('io.dart');
#import('package.dart');
#import('source_registry.dart');
-#import('utils.dart');
/**
* The system-wide cache of installed packages.
@@ -81,7 +79,9 @@ class SystemCache {
}).chain((_) {
return id.source.install(id, path);
}).chain((found) {
- if (!found) throw 'Package $id not found.';
+ if (!found) {
+ throw 'Package ${id.fullName} not found in source "${id.source.name}".';
+ }
return Package.load(path, sources);
});
« no previous file with comments | « utils/pub/repo_source.dart ('k') | utils/pub/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698