Add exception for cyclic Cask dependencies

This commit is contained in:
ndr 2014-12-29 16:36:00 +00:00
parent 54e03c27b0
commit 1d0b697054
1 changed files with 11 additions and 0 deletions

View File

@ -86,6 +86,17 @@ class CaskX11DependencyError < CaskError
end
end
class CaskCyclicCaskDependencyError < CaskError
attr_reader :token
def initialize(token)
@token = token
end
def to_s
"Cask '#{token}' includes cyclic dependencies on other Casks and could not be installed."
end
end
class CaskUnspecifiedError < CaskError
def to_s
"This command requires a Cask token"