Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

capture CFoundry::Denied for login

Change-Id: I275e187fa6dc90b5d15f6d8aa04cac8c1314e7af
  • Loading branch information...
commit 1379d1c1de679526bf164adde477989aa8b3fba2 1 parent 42a9897
@vito vito authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cli/commands/user.rb
2  lib/cli/commands/user.rb
@@ -26,7 +26,7 @@ def login(email=nil)
err "Need a password" unless password
login_and_save_token(email, password)
say "Successfully logged into [#{target_url}]".green
- rescue VMC::Client::TargetError
+ rescue CFoundry::Denied
display "Problem with login, invalid account or password when attempting to login to '#{target_url}'".red
retry if (tries += 1) < 3 && prompt_ok && !@options[:password]
exit 1
Please sign in to comment.
Something went wrong with that request. Please try again.