mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
This commit updates the Auth class to properly raise an error when something goes wrong. It also updates the vmpooler command class to handle when those errors get raised.
11 lines
230 B
Ruby
11 lines
230 B
Ruby
class AuthError < StandardError
|
|
def initialize(msg="Could not authenticate to pooler")
|
|
super
|
|
end
|
|
end
|
|
|
|
class TokenError < StandardError
|
|
def initialize(msg="Could not do operation with token provided")
|
|
super
|
|
end
|
|
end
|