Chromium Code Reviews| Index: utils/pub/io.dart |
| diff --git a/utils/pub/io.dart b/utils/pub/io.dart |
| index e39a9ccbe08c9fce5fc9d1310e3c390526db13ea..e6c3f9bbf93078af080f44bfcf4a08802a42eab7 100644 |
| --- a/utils/pub/io.dart |
| +++ b/utils/pub/io.dart |
| @@ -369,6 +369,7 @@ Future<InputStream> httpGet(uri) { |
| connection.onError = (e) { |
| // Show a friendly error if the URL couldn't be resolved. |
| if (e is SocketIOException && |
| + e.osError != null && |
| (e.osError.errorCode == 8 || |
| e.osError.errorCode == -2 || |
| e.osError.errorCode == -5 || |