-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncatchable rejected promise #73
Comments
@jeffrson |
@sanketbajoria Does a new release need to be created? |
@sebasptsch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When the SFTP server disconnects during ("extended") connection handshake (requesting the sftp subsystem) the client application stops due to unhandled promise rejection. The promise in question is rejected in https://github.com/sanketbajoria/ssh2-promise/blob/master/src/sshConnection.ts#L80
I created a pull request that should fix the problem: #72 - it enables the application to catch the rejected promise, which was otherwise impossible.
The text was updated successfully, but these errors were encountered: