Skip to content

Commit d860832

Browse files
committed
Fixed error message.
1 parent eaba61c commit d860832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Driver/Core/Connections/Socks5Helper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ private static int CreateConnectRequest(byte[] buffer, string targetHost, int ta
254254
addressLength = 16;
255255
break;
256256
default:
257-
throw new IOException("Invalid target host address family.");
257+
throw new IOException($"Invalid target host address family: {ip.AddressFamily}.");
258258
}
259259
}
260260
else

0 commit comments

Comments
 (0)