Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: utils/pub/command_lish.dart

Issue 12847002: Fix pub_lish_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | utils/pub/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | utils/pub/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698