From 478761023d261f5557115c7cc4721638f5822cb7 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Sat, 24 Sep 2016 13:13:27 -0700 Subject: [PATCH] (maint) Don't raise error in command class --- lib/vmfloaty.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/vmfloaty.rb b/lib/vmfloaty.rb index 917f0c7..b182ca1 100644 --- a/lib/vmfloaty.rb +++ b/lib/vmfloaty.rb @@ -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