From 3598fcf3e40b291fa5f78ae04fdba448bf1f75e7 Mon Sep 17 00:00:00 2001 From: drieseng Date: Tue, 26 Jul 2016 19:51:06 +0200 Subject: [PATCH] Do not wrap exceptions in SshException. --- src/Renci.SshNet/Common/AsyncResult.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Renci.SshNet/Common/AsyncResult.cs b/src/Renci.SshNet/Common/AsyncResult.cs index 7b27ccb8..70726ed4 100644 --- a/src/Renci.SshNet/Common/AsyncResult.cs +++ b/src/Renci.SshNet/Common/AsyncResult.cs @@ -90,7 +90,7 @@ namespace Renci.SshNet.Common // Operation is done: if an exception occurred, throw it if (_exception != null) - throw new SshException(_exception.Message, _exception); + throw _exception; } #region Implementation of IAsyncResult