mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Move error messages to STDERR and exit 1
This commit is contained in:
parent
607a679a81
commit
ad003d474b
1 changed files with 4 additions and 4 deletions
|
|
@ -17,8 +17,8 @@ class Auth
|
|||
|
||||
def self.delete_token(verbose, url, user, password, token)
|
||||
if token.nil?
|
||||
puts 'You did not provide a token'
|
||||
return
|
||||
STDERR.puts 'You did not provide a token'
|
||||
exit 1
|
||||
end
|
||||
|
||||
conn = Http.get_conn(verbose, url, user, password)
|
||||
|
|
@ -30,8 +30,8 @@ class Auth
|
|||
|
||||
def self.token_status(verbose, url, user, password, token)
|
||||
if token.nil?
|
||||
puts 'You did not provide a token'
|
||||
return
|
||||
STDERR.puts 'You did not provide a token'
|
||||
exit 1
|
||||
end
|
||||
|
||||
conn = Http.get_conn(verbose, url, user, password)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue