Explorar o código

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

Kenneth_aa_cp %!s(int64=13) %!d(string=hai) anos
pai
achega
2a63e560e7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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