소스 검색

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