Explorar o código

Do not wrap exceptions in SshException.

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