From 2a63e560e7b7b6814b16d9005a632e1da3cf60cd Mon Sep 17 00:00:00 2001 From: Kenneth_aa_cp Date: Thu, 13 Sep 2012 06:12:54 +0000 Subject: [PATCH] Wrapped re-thrown exception into SshException(ex.Message, ex). --- Renci.SshClient/Renci.SshNet/Common/AsyncResult.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Renci.SshClient/Renci.SshNet/Common/AsyncResult.cs b/Renci.SshClient/Renci.SshNet/Common/AsyncResult.cs index c9bc6d5e..2f687bf8 100644 --- a/Renci.SshClient/Renci.SshNet/Common/AsyncResult.cs +++ b/Renci.SshClient/Renci.SshNet/Common/AsyncResult.cs @@ -90,7 +90,7 @@ namespace Renci.SshNet.Common // Operation is done: if an exception occurred, throw it if (this._exception != null) - throw this._exception; + throw new SshException(this._exception.Message, this._exception); } #region Implementation of IAsyncResult