Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Catch Error Raised When No Hosts Are Found #4

Open
jonmchan opened this issue Jul 5, 2016 · 0 comments
Open

Catch Error Raised When No Hosts Are Found #4

jonmchan opened this issue Jul 5, 2016 · 0 comments

Comments

@jonmchan
Copy link
Contributor

jonmchan commented Jul 5, 2016

Catch and print friendly error message for the following error when no hosts are found:

/usr/local/var/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/ipaws-0.3.0/lib/ipaws/eb_commands.rb:162:in `eb_ssh': undefined method `[]' for nil:NilClass (NoMethodError)
    from /usr/local/var/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/ipaws-0.3.0/bin/ipaws:83:in `ssh'
    from /usr/local/var/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /usr/local/var/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /usr/local/var/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /usr/local/var/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /usr/local/var/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/ipaws-0.3.0/bin/ipaws:160:in `<top (required)>'
    from /usr/local/var/rbenv/versions/2.2.4/bin/ipaws:23:in `load'
    from /usr/local/var/rbenv/versions/2.2.4/bin/ipaws:23:in `<main>'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant