Skip to content

Commit 3598fcf

Browse files
committed
Do not wrap exceptions in SshException.
1 parent db0300e commit 3598fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renci.SshNet/Common/AsyncResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void EndInvoke()
9090

9191
// Operation is done: if an exception occurred, throw it
9292
if (_exception != null)
93-
throw new SshException(_exception.Message, _exception);
93+
throw _exception;
9494
}
9595

9696
#region Implementation of IAsyncResult

0 commit comments

Comments
 (0)