Index: sdk/lib/_internal/pub/lib/src/command/cache_add.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/command/cache_add.dart b/sdk/lib/_internal/pub/lib/src/command/cache_add.dart |
index d858a46f8135267a6111671a07d85898d2254861..4a731a22254b30d03622473dced7954c8c430a26 100644 |
--- a/sdk/lib/_internal/pub/lib/src/command/cache_add.dart |
+++ b/sdk/lib/_internal/pub/lib/src/command/cache_add.dart |
@@ -63,8 +63,7 @@ class CacheAddCommand extends PubCommand { |
if (versions.isEmpty) { |
// TODO(rnystrom): Show most recent unmatching version? |
- throw new ApplicationException( |
- "Package $package has no versions that match $constraint."); |
+ fail("Package $package has no versions that match $constraint."); |
} |
downloadVersion(Version version) { |