Index: sdk/lib/_internal/pub/lib/src/source/hosted.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/source/hosted.dart b/sdk/lib/_internal/pub/lib/src/source/hosted.dart |
index aec150c888026320a7fa567d5c772641c84cbf86..a4b716069fe4e850bf8c27147165e4a0084266ba 100644 |
--- a/sdk/lib/_internal/pub/lib/src/source/hosted.dart |
+++ b/sdk/lib/_internal/pub/lib/src/source/hosted.dart |
@@ -167,7 +167,7 @@ class HostedSource extends Source { |
if (error is io.SocketException) { |
fail('Got socket error trying to find package "$package" at $url.\n' |
- '${error.osError}'); |
+ '$error'); |
} |
// Otherwise re-throw the original exception. |