瀏覽代碼

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