Index: sdk/lib/_internal/pub/lib/src/command/lish.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/command/lish.dart b/sdk/lib/_internal/pub/lib/src/command/lish.dart |
index ed0d99b54d0c57b05892037ac110dea2dfb22ab8..8e0c5c2ee29ebb6821f5d1db06e2874bcdf92209 100644 |
--- a/sdk/lib/_internal/pub/lib/src/command/lish.dart |
+++ b/sdk/lib/_internal/pub/lib/src/command/lish.dart |
@@ -83,7 +83,7 @@ class LishCommand extends PubCommand { |
// TODO(nweiz): the response may have XML-formatted information about |
// the error. Try to parse that out once we have an easily-accessible |
// XML parser. |
- throw new ApplicationException('Failed to upload the package.'); |
+ fail('Failed to upload the package.'); |
} else if (urisEqual(Uri.parse(url.origin), Uri.parse(server.origin))) { |
handleJsonError(error.response); |
} else { |