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 4d97b52afbcf6b37caed2b19d12ce918c47f3c97..4ab28c8b5b0e9c9f0a00886ee615587383386b07 100644 |
--- a/sdk/lib/_internal/pub/lib/src/command_lish.dart |
+++ b/sdk/lib/_internal/pub/lib/src/command_lish.dart |
@@ -90,7 +90,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 Exception('Failed to upload the package.'); |
+ throw new ApplicationException('Failed to upload the package.'); |
} else if (urisEqual(Uri.parse(url.origin), Uri.parse(server.origin))) { |
handleJsonError(error.response); |
} else { |