| Index: sdk/lib/_internal/pub/lib/src/path_source.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/path_source.dart b/sdk/lib/_internal/pub/lib/src/path_source.dart
|
| index 72d406599743bb41cf8b6eff1f520f71541c11f8..7d6393598c1ea5f7d4e5e3eaf0baf39dfe4a0695 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/path_source.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/path_source.dart
|
| @@ -110,18 +110,17 @@ class PathSource extends Source {
|
|
|
| /// Ensures that [description] is a valid path description. It must be a map,
|
| /// with a "path" key containing a path that points to an existing directory.
|
| - /// Throws a [FormatException] if the path is invalid.
|
| + /// Throws an [ApplicationException] if the path is invalid.
|
| void _validatePath(String name, description) {
|
| var dir = description["path"];
|
|
|
| if (dirExists(dir)) return;
|
|
|
| if (fileExists(dir)) {
|
| - throw new FormatException(
|
| - "Path dependency for package '$name' must refer to a "
|
| - "directory, not a file. Was '$dir'.");
|
| + fail("Path dependency for package '$name' must refer to a "
|
| + "directory, not a file. Was '$dir'.");
|
| }
|
|
|
| - throw new FormatException("Could not find package '$name' at '$dir'.");
|
| + fail("Could not find package '$name' at '$dir'.");
|
| }
|
| }
|
|
|