diff --git a/src/AdoNetCore.AseClient/Internal/InternalConnectionFactory.cs b/src/AdoNetCore.AseClient/Internal/InternalConnectionFactory.cs index 2c4bf8d..0d468af 100644 --- a/src/AdoNetCore.AseClient/Internal/InternalConnectionFactory.cs +++ b/src/AdoNetCore.AseClient/Internal/InternalConnectionFactory.cs @@ -160,7 +160,7 @@ private InternalConnection CreateConnection(Socket socket, CancellationToken tok if (ex is SocketException || ex is TimeoutException) { - throw new AseException($"There is no server listening at {_parameters.Server}:{_parameters.Port}.", 30294); + throw new AseException($"There is no server listening at {_parameters.Server}:{_parameters.Port}.", 30294, ex); } if (ex is AuthenticationException)