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

Unified Diff: utils/pub/http.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 | « utils/pub/hosted_source.dart ('k') | utils/pub/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/http.dart
diff --git a/utils/pub/http.dart b/utils/pub/http.dart
index d02c0ab38dfee3f15fb5367bcbcf70f62f31dc6b..0a2bf2eeddc009ba00c43754822e5c057e717b73 100644
--- a/utils/pub/http.dart
+++ b/utils/pub/http.dart
@@ -58,13 +58,12 @@ class PubHttpClient extends http.BaseClient {
throw new PubHttpException(response);
});
}).catchError((asyncError) {
- var e = getRealError(asyncError);
- if (e is SocketIOException &&
- e.osError != null &&
- (e.osError.errorCode == 8 ||
- e.osError.errorCode == -2 ||
- e.osError.errorCode == -5 ||
- e.osError.errorCode == 11004)) {
+ if (asyncError.error is SocketIOException &&
+ asyncError.error.osError != null &&
+ (asyncError.error.osError.errorCode == 8 ||
+ asyncError.error.osError.errorCode == -2 ||
+ asyncError.error.osError.errorCode == -5 ||
+ asyncError.error.osError.errorCode == 11004)) {
throw 'Could not resolve URL "${request.url.origin}".';
}
throw asyncError;
« no previous file with comments | « utils/pub/hosted_source.dart ('k') | utils/pub/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698