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

Unified Diff: utils/pub/io.dart

Issue 11369066: Show better error messages in network failures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: utils/pub/io.dart
diff --git a/utils/pub/io.dart b/utils/pub/io.dart
index 8b632e3b47320f2d35c84910c0c2165502be8f2c..26647c86d54c041e6ce96628519032f269c07d65 100644
--- a/utils/pub/io.dart
+++ b/utils/pub/io.dart
@@ -712,6 +712,8 @@ class PubHttpException implements Exception {
final String reason;
const PubHttpException(this.statusCode, this.reason);
+
+ String toString() => 'HTTP error $statusCode: $reason';
}
/**
@@ -721,6 +723,8 @@ class TimeoutException implements Exception {
final String message;
const TimeoutException(this.message);
+
+ String toString() => message;
}
/**

Powered by Google App Engine
This is Rietveld 408576698