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

Unified Diff: utils/pub/command_lish.dart

Issue 11881032: Stop working around issue 7781 in Pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/command_uploader.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 e57402ccad90b3ffb464ca6f5ac5d4f49f4b4091..544fb9451fe1990177dd1dbd9c93240ea4dea5c2 100644
--- a/utils/pub/command_lish.dart
+++ b/utils/pub/command_lish.dart
@@ -72,16 +72,15 @@ class LishCommand extends PubCommand {
}).then((location) => client.get(location))
.then(handleJsonSuccess);
}).catchError((asyncError) {
- var e = getRealError(asyncError);
- if (e is! PubHttpException) throw asyncError;
- var url = e.response.request.url;
+ if (asyncError.error is! PubHttpException) throw asyncError;
+ var url = asyncError.error.response.request.url;
if (url.toString() == cloudStorageUrl.toString()) {
// 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 (url.origin == server.origin) {
- handleJsonError(e.response);
+ handleJsonError(asyncError.error.response);
}
});
}
« no previous file with comments | « no previous file | utils/pub/command_uploader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698