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

Unified Diff: sdk/lib/_internal/pub/lib/src/http.dart

Issue 1007733004: Work around issue 23008 in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/http.dart
diff --git a/sdk/lib/_internal/pub/lib/src/http.dart b/sdk/lib/_internal/pub/lib/src/http.dart
index 4fe118eb25c238e8df4dc24be2c8b0757e6f8982..12ee4e264623b0f98302a2c9f1a4aaec1ae99682 100644
--- a/sdk/lib/_internal/pub/lib/src/http.dart
+++ b/sdk/lib/_internal/pub/lib/src/http.dart
@@ -107,6 +107,9 @@ class _PubHttpClient extends http.BaseClient {
throw new PubHttpException(response);
});
}).catchError((error, stackTrace) {
+ // Work around issue 23008.
+ if (stackTrace == null) stackTrace = new Chain.current();
+
if (error is SocketException &&
error.osError != null) {
if (error.osError.errorCode == 8 ||
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698