소스 검색

Do not wrap exceptions in SshException.

drieseng 9 년 전
부모
커밋
3598fcf3e4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Renci.SshNet/Common/AsyncResult.cs

+ 1 - 1
src/Renci.SshNet/Common/AsyncResult.cs

@@ -90,7 +90,7 @@ namespace Renci.SshNet.Common
 
             // Operation is done: if an exception occurred, throw it
             if (_exception != null)
-                throw new SshException(_exception.Message, _exception);
+                throw _exception;
         }
 
         #region Implementation of IAsyncResult