Index: sdk/lib/_internal/pub/lib/src/global_packages.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/global_packages.dart b/sdk/lib/_internal/pub/lib/src/global_packages.dart |
index 57f806a14af74b18b587438eab3041b827c7fc01..40b12c0c36ad6fb06dc30271d902a931a2f52b35 100644 |
--- a/sdk/lib/_internal/pub/lib/src/global_packages.dart |
+++ b/sdk/lib/_internal/pub/lib/src/global_packages.dart |
@@ -110,7 +110,11 @@ class GlobalPackages { |
// Resolve it and download its dependencies. |
return resolveVersions(SolveType.GET, cache.sources, root).then((result) { |
- if (!result.succeeded) throw result.error; |
+ if (!result.succeeded) { |
+ if (result.error.package != dep.name) throw result.error; |
Bob Nystrom
2014/08/20 23:29:28
Document the intent here.
nweiz
2014/08/20 23:38:05
Done.
|
+ if (result.error is NoVersionException) dataError(result.error.message); |
+ throw result.error; |
+ } |
result.showReport(SolveType.GET); |
// Make sure all of the dependencies are locally installed. |