| Index: sdk/lib/_internal/pub/lib/src/command.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/command.dart b/sdk/lib/_internal/pub/lib/src/command.dart
|
| index d1f8516dfe375629ab134ecf8dfb3c412b90173f..abc2468e41e384272d55ab39d1dca46f09e7b53b 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/command.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/command.dart
|
| @@ -134,11 +134,11 @@ and include the results in a bug report on http://dartbug.com/new.
|
| return commandFuture;
|
| }).whenComplete(() => cache.deleteTempDir()).catchError((e) {
|
| if (e is PubspecNotFoundException && e.name == null) {
|
| - e = 'Could not find a file named "pubspec.yaml" in the directory '
|
| - '${path.current}.';
|
| + e = new ApplicationException('Could not find a file named '
|
| + '"pubspec.yaml" in the directory ${path.current}.');
|
| } else if (e is PubspecHasNoNameException && e.name == null) {
|
| - e = 'pubspec.yaml is missing the required "name" field (e.g. "name: '
|
| - '${path.basename(path.current)}").';
|
| + e = new ApplicationException('pubspec.yaml is missing the required '
|
| + '"name" field (e.g. "name: ${path.basename(path.current)}").');
|
| }
|
|
|
| handleError(e);
|
|
|