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

Unified Diff: utils/pub/pub.dart

Issue 11087039: Print out the working directory when git fails. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
« no previous file with comments | « utils/pub/io.dart ('k') | utils/tests/pub/pub.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index e85b60efc7c621468b2b5171741de9ffd7c0b69b..e3598bb3dd6f96116ed175ab59ed96f4a175fe3a 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -204,7 +204,7 @@ abstract class PubCommand {
// TODO(rnystrom): Will eventually need better logic to walk up
// subdirectories until we hit one that looks package-like. For now, just
// assume the cwd is it.
- future = Package.load(null, workingDir, cache.sources)
+ future = Package.load(null, currentWorkingDir, cache.sources)
.transform((package) => new Entrypoint(package, cache));
}
@@ -224,10 +224,10 @@ abstract class PubCommand {
future.handleException((e) {
if (e is PubspecNotFoundException && e.name == null) {
e = 'Could not find a file named "pubspec.yaml" in the directory '
- '$workingDir.';
+ 'currentWorkingDir.';
nweiz 2012/10/10 00:17:11 This should be $currentWorkingDir.
Bob Nystrom 2012/10/10 00:20:51 Argh. Good catch. This got reverted anyway.
} else if (e is PubspecHasNoNameException && e.name == null) {
e = 'pubspec.yaml is missing the required "name" field (e.g. "name: '
- '${basename(workingDir)}").';
+ '${basename(currentWorkingDir)}").';
}
handleError(e, future.stackTrace);
« no previous file with comments | « utils/pub/io.dart ('k') | utils/tests/pub/pub.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698