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

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

Issue 49293003: Report wrapped pub exceptions with --verbose and --trace. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review change Created 7 years, 1 month 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
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 f9e63bbb8590eb0eb5f95e8130a1932d1b80514b..af289fc37d39456b626d866e455d186d7cbbe324 100644
--- a/sdk/lib/_internal/pub/lib/src/http.dart
+++ b/sdk/lib/_internal/pub/lib/src/http.dart
@@ -85,7 +85,7 @@ class PubHttpClient extends http.BaseClient {
return http.Response.fromStream(streamedResponse).then((response) {
throw new PubHttpException(response);
});
- }).catchError((error) {
+ }).catchError((error, stackTrace) {
if (error is SocketException &&
error.osError != null) {
if (error.osError.errorCode == 8 ||
@@ -93,10 +93,12 @@ class PubHttpClient extends http.BaseClient {
error.osError.errorCode == -5 ||
error.osError.errorCode == 11001 ||
error.osError.errorCode == 11004) {
- fail('Could not resolve URL "${request.url.origin}".');
+ fail('Could not resolve URL "${request.url.origin}".',
+ error, stackTrace);
} else if (error.osError.errorCode == -12276) {
fail('Unable to validate SSL certificate for '
- '"${request.url.origin}".');
+ '"${request.url.origin}".',
+ error, stackTrace);
}
}
print('Error in PubHttpClient.send (issue 12581) error: $error');
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/command.dart ('k') | sdk/lib/_internal/pub/lib/src/solver/version_solver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698