| Index: sdk/lib/_internal/pub/lib/src/utils.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/utils.dart b/sdk/lib/_internal/pub/lib/src/utils.dart
|
| index eaf34f7c64838958b789e7f1803767366c2b6d03..edadfeeb47b655d86db89a285e3f4a99de20b745 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/utils.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/utils.dart
|
| @@ -840,6 +840,7 @@ void fail(String message, [innerError, StackTrace innerTrace]) {
|
| /// failed because of invalid input data.
|
| ///
|
| /// This will report the error and cause pub to exit with [exit_codes.DATA].
|
| -void dataError(String message) {
|
| - throw new DataException(message);
|
| -}
|
| +void dataError(String message) => throw new DataException(message);
|
| +
|
| +/// Throw a [UsageException] for a usage error of a command with [message].
|
| +void usageError(String message) => throw new UsageException(message);
|
|
|