| Index: utils/pub/command_lish.dart
|
| diff --git a/utils/pub/command_lish.dart b/utils/pub/command_lish.dart
|
| index f9d68972fcbc5cfd95c381655eff7a2e663672d6..84afdc03a1e25e6f38a76a43a245d8d22e588e3f 100644
|
| --- a/utils/pub/command_lish.dart
|
| +++ b/utils/pub/command_lish.dart
|
| @@ -85,12 +85,12 @@ class LishCommand extends PubCommand {
|
| }).catchError((asyncError) {
|
| if (asyncError.error is! PubHttpException) throw asyncError;
|
| var url = asyncError.error.response.request.url;
|
| - if (uriEqual(url, cloudStorageUrl)) {
|
| + if (urisEqual(url, cloudStorageUrl)) {
|
| // 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 'Failed to upload the package.';
|
| - } else if (uriEqual(url.origin, server.origin)) {
|
| + } else if (urisEqual(Uri.parse(url.origin), Uri.parse(server.origin))) {
|
| handleJsonError(asyncError.error.response);
|
| } else {
|
| throw asyncError;
|
|
|