Skip to content

Commit a4c53a7

Browse files
authored
Merge pull request #216 from bbarry/patch-1
pass the internal exception to the constructor
2 parents a0d87f8 + 74da0cc commit a4c53a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AdoNetCore.AseClient/Internal/InternalConnectionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private InternalConnection CreateConnection(Socket socket, CancellationToken tok
160160

161161
if (ex is SocketException || ex is TimeoutException)
162162
{
163-
throw new AseException($"There is no server listening at {_parameters.Server}:{_parameters.Port}.", 30294);
163+
throw new AseException($"There is no server listening at {_parameters.Server}:{_parameters.Port}.", 30294, ex);
164164
}
165165

166166
if (ex is AuthenticationException)

0 commit comments

Comments
 (0)