Chromium Code Reviews| Index: utils/pub/command_lish.dart |
| diff --git a/utils/pub/command_lish.dart b/utils/pub/command_lish.dart |
| index 2605cf674e14eedbabb74875d7c8a6f64fa80898..f9d68972fcbc5cfd95c381655eff7a2e663672d6 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 (url.toString() == cloudStorageUrl.toString()) { |
| + if (uriEqual(url, cloudStorageUrl)) { |
| // TODO(nweiz): the response may have XML-formatted information about |
|
Jennifer Messerly
2013/03/11 22:58:54
you could vendor in http://pub.dartlang.org/packag
nweiz
2013/03/11 22:59:37
we might, at some point
|
| // the error. Try to parse that out once we have an easily-accessible |
| // XML parser. |
| throw 'Failed to upload the package.'; |
| - } else if (url.origin == server.origin) { |
| + } else if (uriEqual(url.origin, server.origin)) { |
| handleJsonError(asyncError.error.response); |
| } else { |
| throw asyncError; |