Browse Source

Wrapped re-thrown exception into SshException(ex.Message, ex).

Kenneth_aa_cp 13 years ago
parent
commit
2a63e560e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Renci.SshClient/Renci.SshNet/Common/AsyncResult.cs

+ 1 - 1
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