| Index: utils/pub/pub.dart
|
| diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
|
| index b1dc0cf2d3e580d038f0c51c44f92f06a0780465..fb2c7f87a308bb0dcb78edb9bcb46d959c1cf5f8 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));
|
| }
|
|
|
| @@ -226,10 +226,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.';
|
| } 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);
|
|
|