Index: utils/pub/io.dart |
diff --git a/utils/pub/io.dart b/utils/pub/io.dart |
index f24dfd4e0e2e7a15c5df32b60ff80851ceda5102..f88f130cac224d4754c81cd3e6a71451cc1fd62d 100644 |
--- a/utils/pub/io.dart |
+++ b/utils/pub/io.dart |
@@ -325,7 +325,8 @@ Future<String> httpGetString(uri) { |
connection.onError = (e) { |
// Show a friendly error if the URL couldn't be resolved. |
- if (e is SocketIOException && e.osError.errorCode == 8) { |
+ if (e is SocketIOException && |
+ (e.osError.errorCode == 8 || e.osError.errorCode == -2)) { |
e = 'Could not resolve URL "${uri.origin}".'; |
} |