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

Unified Diff: lib/src/pubspec.dart

Issue 1228683003: Fix various pub issues. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 5 months 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
Index: lib/src/pubspec.dart
diff --git a/lib/src/pubspec.dart b/lib/src/pubspec.dart
index 13cce16e8583318ce3f61ca8121b01cc9d44a891..19bd769fcef94b3cfe96bb9cd7ff758996080cab 100644
--- a/lib/src/pubspec.dart
+++ b/lib/src/pubspec.dart
@@ -312,7 +312,10 @@ class Pubspec {
var pubspecUri = path.toUri(pubspecPath);
if (!fileExists(pubspecPath)) {
throw new FileException(
- 'Could not find a file named "pubspec.yaml" in "$packageDir".',
+ // Make the package dir absolute because for the entrypoint it'll just
+ // be ".", which may be confusing.
+ 'Could not find a file named "pubspec.yaml" in '
+ '"${path.normalize(path.absolute(packageDir))}".',
pubspecPath);
}
« lib/src/dart.dart ('K') | « lib/src/package.dart ('k') | test/packages_file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698