Add more error handling around token command

This commit is contained in:
Brian Cain 2015-09-14 22:56:17 -07:00
parent 992a37cabf
commit 9c69e752e7

View file

@ -221,8 +221,10 @@ class Vmfloaty
Auth.delete_token(verbose, url, user, pass, token)
when "status"
Auth.token_status(verbose, url, user, pass, token)
when nil
STDERR.puts "No action provided"
else
puts "Unknown action: #{action}"
STDERR.puts "Unknown action: #{action}"
end
end
end