./lib/cupertino/provisioning_portal/commands/logout.rb in cupertino-1.0.1 vs ./lib/cupertino/provisioning_portal/commands/logout.rb in cupertino-1.0.2

- old
+ new

@@ -4,10 +4,12 @@ c.description = '' c.action do |args, options| say_error "You are not authenticated" and abort unless Security::InternetPassword.find(:server => Cupertino::ProvisioningPortal::HOST) - Security::InternetPassword.delete(:server => Cupertino::ProvisioningPortal::HOST) - - say_ok "Account credentials removed" + if Security::InternetPassword.delete(:server => Cupertino::ProvisioningPortal::HOST) + say_ok "Account credentials removed" + else + say_error "Error removing credentials" + end end end