diff options
| author | Markus Reiter | 2017-06-28 17:53:59 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-06-30 02:20:50 +0200 |
| commit | 6a1fa87191bfef31ff1b2d47d3ebf281398a210f (patch) | |
| tree | 10efb928a0477fe63510425cff4af8303b65af82 /Library/Homebrew/cask/lib/hbc/exceptions.rb | |
| parent | 96271aaa89c47cf4f0ff10e8e9a165c1ac2cdb73 (diff) | |
| download | brew-6a1fa87191bfef31ff1b2d47d3ebf281398a210f.tar.bz2 | |
Refactor Formula/Cask dependencies.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/exceptions.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/exceptions.rb b/Library/Homebrew/cask/lib/hbc/exceptions.rb index d9e1b07db..1a246be65 100644 --- a/Library/Homebrew/cask/lib/hbc/exceptions.rb +++ b/Library/Homebrew/cask/lib/hbc/exceptions.rb @@ -77,9 +77,15 @@ module Hbc end end - class CaskCyclicCaskDependencyError < AbstractCaskErrorWithToken + class CaskCyclicDependencyError < AbstractCaskErrorWithToken def to_s - "Cask '#{token}' includes cyclic dependencies on other Casks and could not be installed." + "Cask '#{token}' includes cyclic dependencies on other Casks" << (reason.empty? ? "." : ": #{reason}") + end + end + + class CaskSelfReferencingDependencyError < CaskCyclicDependencyError + def to_s + "Cask '#{token}' depends on itself." end end @@ -91,7 +97,7 @@ module Hbc class CaskInvalidError < AbstractCaskErrorWithToken def to_s - "Cask '#{token}' definition is invalid" << (reason.empty? ? ".": ": #{reason}") + "Cask '#{token}' definition is invalid" << (reason.empty? ? "." : ": #{reason}") end end |
