Skip to content
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

Use Net::SFTP::StatusException instead of RuntimeError in the download operation #48

Conversation

yujideveloper
Copy link
Contributor

[1] pry(main)> require "net/sftp"
=> true
[2] pry(main)> Net::SFTP.start('host', 'username', password: 'password').download!('hoge.xt', 'hoge.txt')
Net::SFTP::StatusException: Net::SFTP::StatusException open hoge.txt (2, "no such file")
from /home/user/net-sftp/lib/net/sftp/operations/download.rb:307:in `on_open'

@yujideveloper yujideveloper force-pushed the feature/use-status-exception-instead-of-runtimeerror branch from ddf51b0 to a078d6b Compare April 17, 2016 04:49
@yujideveloper yujideveloper changed the title Use Net::SFTP::StatusException instead of RuntimeError in the download operatoin Use Net::SFTP::StatusException instead of RuntimeError in the download operation Apr 17, 2016
@mfazekas mfazekas merged commit be8cbd0 into net-ssh:master Dec 19, 2018
@yujideveloper yujideveloper deleted the feature/use-status-exception-instead-of-runtimeerror branch December 19, 2018 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants