| Index: sdk/lib/io/secure_socket.dart
|
| diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart
|
| index b887601e376f34c2319d807adec8f4586d7baf96..a76d36b90fb9477dc7c9b25de4b42c82e5136f5d 100644
|
| --- a/sdk/lib/io/secure_socket.dart
|
| +++ b/sdk/lib/io/secure_socket.dart
|
| @@ -572,7 +572,7 @@ class _RawSecureSocket extends Stream<RawSocketEvent>
|
| // TODO(whesse): Call _reportError from all internal functions that throw.
|
| if (e is SocketIOException) {
|
| e = new SocketIOException('$message (${e.message})', e.osError);
|
| - } else if (error is OSError) {
|
| + } else if (e is OSError) {
|
| e = new SocketIOException(message, e);
|
| } else {
|
| e = new SocketIOException('$message (${e.toString()})', null);
|
|
|