Parcourir la source

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

Kenneth_aa_cp il y a 13 ans
Parent
commit
2a63e560e7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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