vmc-ng/lib/vmc/cli.rb in vmc-0.4.0.beta.91 vs vmc-ng/lib/vmc/cli.rb in vmc-0.4.0.beta.92
- old
+ new
@@ -115,10 +115,10 @@
rescue UserError => e
log_error(e)
err e.message
rescue SystemExit
raise
- rescue CFoundry::Forbidden, CFoundry::InvalidAuthToken
+ rescue CFoundry::Forbidden, CFoundry::InvalidAuthToken => e
if !$vmc_asked_auth
$vmc_asked_auth = true
line
line c("Not authenticated! Try logging in:", :warning)