(maint) Don't raise error in command class

This commit is contained in:
Brian Cain 2016-09-24 13:13:27 -07:00
parent 8b8ac88578
commit 478761023d

View file

@ -52,7 +52,8 @@ class Vmfloaty
unless token
puts "No token found. Retrieving a token..."
if !user
raise "You did not provide a user to authenticate to vmpooler with"
STDERR.puts "You did not provide a user to authenticate to vmpooler with"
exit 1
end
pass = password "Enter your password please:", '*'
begin
@ -416,7 +417,8 @@ class Vmfloaty
if !no_token && !token
puts "No token found. Retrieving a token..."
if !user
raise "You did not provide a user to authenticate to vmpooler with"
STDERR.puts "You did not provide a user to authenticate to vmpooler with"
exit 1
end
pass = password "Enter your password please:", '*'
begin