Index: sdk/lib/_internal/pub/lib/src/pubspec.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/pubspec.dart b/sdk/lib/_internal/pub/lib/src/pubspec.dart |
index 3291b34dbfe5bf1c7f3391e614c004186a02fbc4..dafb5136f535207e0e99b86a52d0b6bcdf271146 100644 |
--- a/sdk/lib/_internal/pub/lib/src/pubspec.dart |
+++ b/sdk/lib/_internal/pub/lib/src/pubspec.dart |
@@ -223,7 +223,9 @@ class Pubspec { |
var pubspecPath = path.join(packageDir, 'pubspec.yaml'); |
var pubspecUri = path.toUri(pubspecPath); |
if (!fileExists(pubspecPath)) { |
- fail('Could not find a file named "pubspec.yaml" in "$packageDir".'); |
+ throw new FileException( |
+ 'Could not find a file named "pubspec.yaml" in "$packageDir".', |
+ pubspecPath); |
} |
return new Pubspec.parse(readTextFile(pubspecPath), sources, |