Make the 'stdout/stderr/exit code' available during exceptions #539

Merged
merged 1 commit into from Feb 12, 2013

Projects

None yet

2 participants

@aw
Contributor
aw commented Feb 12, 2013

An error is raised when an ssh_execute command returns an exit code greater than 0. This change allows us to capture that information in a rescue call.

🔥 🚒

Example:

begin
  # ... do something
rescue Veewee::Provider::Core::Helper::SshResult => result
  puts result.stdout
end
@aw aw Make the 'stdout/stderr/exit code' available during exceptions
An error is raised when a ssh_execute command returns an exit code is
greater than 0. This change allows use to capture that information in
a rescue call.

Example:
    ```
    begin
      # ... do something
    rescue Veewee::Provider::Core::Helper::SshResult => result
      puts result.stdout
    end
    ```
001a26c
@jedi4ever jedi4ever merged commit 9f06eac into jedi4ever:master Feb 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment