| Index: utils/pub/pub.dart
|
| diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
|
| index 157b6805154c42543d6c19ad7db9b2ece5c49250..ae6c13a7df77cf1cb532746fd7246244c88b7f84 100644
|
| --- a/utils/pub/pub.dart
|
| +++ b/utils/pub/pub.dart
|
| @@ -262,7 +262,7 @@ abstract class PubCommand {
|
| future
|
| .then((_) => cache_.deleteTempDir())
|
| .catchError((asyncError) {
|
| - var e = getRealError(asyncError);
|
| + var e = asyncError.error;
|
| if (e is PubspecNotFoundException && e.name == null) {
|
| e = 'Could not find a file named "pubspec.yaml" in the directory '
|
| '${path.current}.';
|
| @@ -271,7 +271,7 @@ abstract class PubCommand {
|
| '${basename(path.current)}").';
|
| }
|
|
|
| - handleError(e, getRealStackTrace(asyncError));
|
| + handleError(e, asyncError.stackTrace);
|
| })
|
| // Explicitly exit on success to ensure that any dangling dart:io handles
|
| // don't cause the process to never terminate.
|
|
|