Преглед изворни кода

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

Kenneth_aa_cp пре 13 година
родитељ
комит
2a63e560e7
1 измењених фајлова са 1 додато и 1 уклоњено
  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