Index: utils/pub/http.dart |
diff --git a/utils/pub/http.dart b/utils/pub/http.dart |
index 7218562f0868ecb1831884f513b09313fd4b2f7d..1c349786a1ced8b7f98f52838cdb8452ed3675cc 100644 |
--- a/utils/pub/http.dart |
+++ b/utils/pub/http.dart |
@@ -14,6 +14,7 @@ import '../../pkg/http/lib/http.dart' as http; |
import 'curl_client.dart'; |
import 'io.dart'; |
import 'log.dart' as log; |
+import 'utils.dart'; |
// TODO(nweiz): make this configurable |
/// The amount of time in milliseconds to allow HTTP requests before assuming |
@@ -57,6 +58,7 @@ class PubHttpClient extends http.BaseClient { |
throw new PubHttpException(response); |
}); |
}).catchError((e) { |
+ e = getRealError(e); |
if (e is SocketIOException && |
e.osError != null && |
(e.osError.errorCode == 8 || |