forked from eagletmt/libssh-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate better error messages on invalid options
When attempting to set an option to an invalid value, libssh always generates the message “Invalid argument in ssh_options_set”. This is not really useful in contexts where the stack trace is not available. libssh-ruby will now generate a more explanative error message when ssh_options_set returns < 0, by including the option we were trying to set along with the invalid value. The raised exception will be an ArgumentError rather than a LibSSH::Error, because that’s what it is.
- Loading branch information
Showing
2 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters