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

Unified Diff: sdk/lib/_internal/pub/lib/src/source/path.dart

Issue 114193010: Show the dependender(s) for missing packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years 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 | « sdk/lib/_internal/pub/lib/src/source/hosted.dart ('k') | sdk/lib/_internal/pub/lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/source/path.dart
diff --git a/sdk/lib/_internal/pub/lib/src/source/path.dart b/sdk/lib/_internal/pub/lib/src/source/path.dart
index 76892e1e6528a26573858f4073dff48b9382476a..1d8fbb8be431db7ae86a541ab88d9bdd90f2e675 100644
--- a/sdk/lib/_internal/pub/lib/src/source/path.dart
+++ b/sdk/lib/_internal/pub/lib/src/source/path.dart
@@ -135,10 +135,11 @@ class PathSource extends Source {
if (dirExists(dir)) return dir;
if (fileExists(dir)) {
- fail("Path dependency for package '$name' must refer to a "
- "directory, not a file. Was '$dir'.");
+ fail('Path dependency for package $name must refer to a directory, '
+ 'not a file. Was "$dir".');
}
- fail("Could not find package '$name' at '$dir'.");
+ throw new PackageNotFoundException(
+ 'Could not find package $name at "$dir".');
}
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/source/hosted.dart ('k') | sdk/lib/_internal/pub/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698