dyoder / befog

Command line utility for cloud management
MIT License
4 stars 4 forks source link

Better Error Message For Keypair NotFound Exception #42

Open dyoder opened 12 years ago

dyoder commented 12 years ago

If you provide a reference to a non-existent keypair, Fog gives us this completely reasonable but not terribly user-friendly error message:

Fog::Compute::AWS::NotFound: The key pair '/Users/jsmith/.ssh/id_dsa.pub' does not exist
in /lib/excon/connection.rb:272:in `request_kernel'

We should probably catch this exception (and possibly others) and spit out a simple error message that explains that they need to set up a keypair on AWS and reference it by name.