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".'); |
} |
} |